mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00:00
Prefix libavcodec CODEC_FLAG_ constants with AV_
The unprefixed versions are silently deprecated.
This commit is contained in:
parent
35716b53db
commit
b9cebf180b
@ -473,7 +473,7 @@ static void encode_2pass_prepare(struct encode_lavc_context *ctx,
|
||||
if (!(*bytebuf = stream_open(buf, ctx->global))) {
|
||||
MP_WARN(ctx, "%s: could not open '%s', "
|
||||
"disabling 2-pass encoding at pass 2\n", prefix, buf);
|
||||
codec->flags &= ~CODEC_FLAG_PASS2;
|
||||
codec->flags &= ~AV_CODEC_FLAG_PASS2;
|
||||
set_to_avdictionary(ctx, dictp, "flags", "-pass2");
|
||||
} else {
|
||||
struct bstr content = stream_read_complete(*bytebuf, NULL,
|
||||
|
@ -518,11 +518,11 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
|
||||
mp_set_avcodec_threads(vd->log, avctx, lavc_param->threads);
|
||||
}
|
||||
|
||||
avctx->flags |= lavc_param->bitexact ? CODEC_FLAG_BITEXACT : 0;
|
||||
avctx->flags2 |= lavc_param->fast ? CODEC_FLAG2_FAST : 0;
|
||||
avctx->flags |= lavc_param->bitexact ? AV_CODEC_FLAG_BITEXACT : 0;
|
||||
avctx->flags2 |= lavc_param->fast ? AV_CODEC_FLAG2_FAST : 0;
|
||||
|
||||
if (lavc_param->show_all)
|
||||
avctx->flags |= CODEC_FLAG_OUTPUT_CORRUPT;
|
||||
avctx->flags |= AV_CODEC_FLAG_OUTPUT_CORRUPT;
|
||||
|
||||
avctx->skip_loop_filter = lavc_param->skip_loop_filter;
|
||||
avctx->skip_idct = lavc_param->skip_idct;
|
||||
|
Loading…
Reference in New Issue
Block a user