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

vd_ffmpeg: remove #ifdef for old FFmpeg-mt versions

The #ifdef is obsolete since trying to compile against the relevant
old versions will fail for other reasons.
This commit is contained in:
Uoti Urpala 2010-05-07 22:15:19 +03:00
parent e1cd86076f
commit 5266b5de98

View File

@ -152,12 +152,6 @@ static int control(sh_video_t *sh, int cmd, void *arg, ...){
return CONTROL_TRUE;
case VDCTRL_QUERY_UNSEEN_FRAMES:;
int delay = avctx->has_b_frames;
#if defined(FF_THREAD_FRAME) && LIBAVCODEC_VERSION_MAJOR <= 52 && LIBAVCODEC_VERSION_MINOR < 49
// FFmpeg-mt has extra delay when using frame threading
// In newer versions that is included in has_b_frames
if (avctx->thread_type & FF_THREAD_FRAME)
delay += avctx->thread_count - 1;
#endif
return delay + 10;
}
return CONTROL_UNKNOWN;