mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
vd_ffmpeg: use skip_frame instead of deprecated hurry_up field
This commit is contained in:
parent
035611f0a7
commit
bc767c2a98
@ -749,7 +749,12 @@ static struct mp_image *decode(struct sh_video *sh, void *data, int len,
|
||||
}
|
||||
}
|
||||
|
||||
avctx->hurry_up=(flags&3)?((flags&2)?2:1):0;
|
||||
if (flags & 2)
|
||||
avctx->skip_frame = AVDISCARD_ALL;
|
||||
else if (flags & 1)
|
||||
avctx->skip_frame = AVDISCARD_NONREF;
|
||||
else
|
||||
avctx->skip_frame = 0;
|
||||
|
||||
mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "vd_ffmpeg data: %04x, %04x, %04x, %04x\n",
|
||||
((int *)data)[0], ((int *)data)[1], ((int *)data)[2], ((int *)data)[3]);
|
||||
|
Loading…
Reference in New Issue
Block a user