0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

vd_ffmpeg: use skip_frame instead of deprecated hurry_up field

This commit is contained in:
Uoti Urpala 2010-05-04 04:50:57 +03:00
parent 035611f0a7
commit bc767c2a98

View File

@ -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]);