mirror of
https://github.com/mpv-player/mpv
synced 2024-08-28 05:46:13 +02:00
support hurryup flag (-(hard)framedrop)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5876 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
04ea2879d3
commit
66052c7bda
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user