summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-12-29 07:37:31 +0100
committerwm4 <wm4@nowhere>2016-12-29 07:37:31 +0100
commitb9cebf180b6d0b429dccbffb60243a88b600aca1 (patch)
treef52e9ece8330342f560423049a0d35b9113cb643 /video/decode/vd_lavc.c
parent35716b53dbd63f4eeacffc989a705dbcd4ef9f41 (diff)
downloadmpv-b9cebf180b6d0b429dccbffb60243a88b600aca1.tar.bz2
mpv-b9cebf180b6d0b429dccbffb60243a88b600aca1.tar.xz
Prefix libavcodec CODEC_FLAG_ constants with AV_
The unprefixed versions are silently deprecated.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index cc3bbc86c7..1c6a1fef11 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -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;