diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-27 23:45:00 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-27 23:45:00 +0000 |
commit | 66052c7bda5f53d4691986ede083b0dad601c546 (patch) | |
tree | a8c127b19ea0b989841928ab3d2f46d6e03ba6fe /libmpcodecs/vd_ffmpeg.c | |
parent | 04ea2879d33d3b8ba14c4cd8df3ece3be1c675dc (diff) | |
download | mpv-66052c7bda5f53d4691986ede083b0dad601c546.tar.bz2 mpv-66052c7bda5f53d4691986ede083b0dad601c546.tar.xz |
support hurryup flag (-(hard)framedrop)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5876 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 6 |
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); |