Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 5875:bcf5220e98af
support hurryup flag (-(hard)framedrop)
author | arpi |
---|---|
date | Sat, 27 Apr 2002 23:45:00 +0000 |
parents | c63b519bd183 |
children | 65ee86f5a45f |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sat Apr 27 23:35:23 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Apr 27 23:45:00 2002 +0000 @@ -160,7 +160,11 @@ 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);