From 66052c7bda5f53d4691986ede083b0dad601c546 Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 27 Apr 2002 23:45:00 +0000 Subject: [PATCH] support hurryup flag (-(hard)framedrop) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5876 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_ffmpeg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);