summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 3c155aca3c..6586157805 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -160,7 +160,11 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
avctx->opaque=sh->video_out;
}
}
-
+
+#if LIBAVCODEC_BUILD > 4603
+ avctx->hurry_up=(flags&3)?((flags&2)?2:1):0;
+#endif
+
ret = avcodec_decode_video(avctx, &lavc_picture,
&got_picture, data, len);