summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-25 19:11:16 +0200
committerwm4 <wm4@nowhere>2016-04-25 19:11:16 +0200
commit8ffd2f1dd429cd1ca0e7e0ef48aa15584a599264 (patch)
tree72f498b41bba7aaccfe2b1765dca26aa828dd092 /video/decode/vd_lavc.c
parent6a1814dfb85a18ddfbf9a99c6eabde2978b3274d (diff)
downloadmpv-8ffd2f1dd429cd1ca0e7e0ef48aa15584a599264.tar.bz2
mpv-8ffd2f1dd429cd1ca0e7e0ef48aa15584a599264.tar.xz
vd_lavc: simplify some unneeded ifdeffery
These were for ancient libavcodec versions.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 7658842711..b5679f1b46 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -478,14 +478,8 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
avctx->flags |= lavc_param->bitexact ? CODEC_FLAG_BITEXACT : 0;
avctx->flags2 |= lavc_param->fast ? CODEC_FLAG2_FAST : 0;
- if (lavc_param->show_all) {
-#ifdef CODEC_FLAG2_SHOW_ALL
- avctx->flags2 |= CODEC_FLAG2_SHOW_ALL; // ffmpeg only?
-#endif
-#ifdef CODEC_FLAG_OUTPUT_CORRUPT
- avctx->flags |= CODEC_FLAG_OUTPUT_CORRUPT; // added with Libav 10
-#endif
- }
+ if (lavc_param->show_all)
+ avctx->flags |= CODEC_FLAG_OUTPUT_CORRUPT;
avctx->skip_loop_filter = lavc_param->skip_loop_filter;
avctx->skip_idct = lavc_param->skip_idct;