mirror of https://github.com/mpv-player/mpv
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
|
@ -161,6 +161,10 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
|||
}
|
||||
}
|
||||
|
||||
#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