From: Antonio Ospite Date: Mon, 26 Feb 2018 10:03:13 +0000 (+0100) Subject: am7xxx-play: rename CODEC_FLAG_QSCALE to AV_CODEC_FLAG_QSCALE X-Git-Tag: v0.1.7~27 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/0f5a391c4e6dfdc02bf1e5f09f6eb531b0ce403a?ds=inline;hp=0ff36a0da0e0a1d8936e050231bfad118d92606b am7xxx-play: rename CODEC_FLAG_QSCALE to AV_CODEC_FLAG_QSCALE In FFMpeg 3.5+ the unprefixed CODEC_* constants have been removed, only the correspondent AV_CODEC_* ones are available. This fixes a build failure: .../examples/am7xxx-play.c: In function 'video_output_init': .../examples/am7xxx-play.c:240:34: error: 'CODEC_FLAG_QSCALE' undeclared (first use in this function); did you mean 'AV_CODEC_FLAG_QSCALE'? output_codec_ctx->flags |= CODEC_FLAG_QSCALE; ^~~~~~~~~~~~~~~~~ AV_CODEC_FLAG_QSCALE --- diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index 46a91c9..7bad4f7 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -238,7 +238,7 @@ static int video_output_init(struct video_output_ctx *output_ctx, output_codec_ctx->qmin = output_codec_ctx->qmax = ((100 - (quality - 1)) * FF_QUALITY_SCALE) / 100; output_codec_ctx->mb_lmin = output_codec_ctx->qmin * FF_QP2LAMBDA; output_codec_ctx->mb_lmax = output_codec_ctx->qmax * FF_QP2LAMBDA; - output_codec_ctx->flags |= CODEC_FLAG_QSCALE; + output_codec_ctx->flags |= AV_CODEC_FLAG_QSCALE; output_codec_ctx->global_quality = output_codec_ctx->qmin * FF_QP2LAMBDA; /* find the encoder */