Commit 963cd953 authored by James Almer's avatar James Almer

avfilter: stop using deprecated codec flags

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent f5c8d004
...@@ -122,7 +122,7 @@ static int config_props(AVFilterLink *inlink) ...@@ -122,7 +122,7 @@ static int config_props(AVFilterLink *inlink)
enc_ctx->gop_size = INT_MAX; enc_ctx->gop_size = INT_MAX;
enc_ctx->max_b_frames = 0; enc_ctx->max_b_frames = 0;
enc_ctx->pix_fmt = AV_PIX_FMT_YUV420P; enc_ctx->pix_fmt = AV_PIX_FMT_YUV420P;
enc_ctx->flags = AV_CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY; enc_ctx->flags = AV_CODEC_FLAG_QSCALE | AV_CODEC_FLAG_LOW_DELAY;
enc_ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; enc_ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
enc_ctx->global_quality = 1; enc_ctx->global_quality = 1;
enc_ctx->me_cmp = enc_ctx->me_sub_cmp = FF_CMP_SAD; enc_ctx->me_cmp = enc_ctx->me_sub_cmp = FF_CMP_SAD;
......
...@@ -357,7 +357,7 @@ static int config_input(AVFilterLink *inlink) ...@@ -357,7 +357,7 @@ static int config_input(AVFilterLink *inlink)
avctx_enc->gop_size = INT_MAX; avctx_enc->gop_size = INT_MAX;
avctx_enc->max_b_frames = 0; avctx_enc->max_b_frames = 0;
avctx_enc->pix_fmt = inlink->format; avctx_enc->pix_fmt = inlink->format;
avctx_enc->flags = AV_CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY; avctx_enc->flags = AV_CODEC_FLAG_QSCALE | AV_CODEC_FLAG_LOW_DELAY;
avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
avctx_enc->global_quality = 123; avctx_enc->global_quality = 123;
av_dict_set(&opts, "no_bitstream", "1", 0); av_dict_set(&opts, "no_bitstream", "1", 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment