From 9b60398f4e2710e304eb4bbb51ed70e0b8523845 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 26 Sep 2017 19:13:26 +0200 Subject: video: remove old videotoolbox support Like as in previous commits, you need a very recent FFmpeg (probably git master). --- video/decode/vd_lavc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 1275a67300..5d3f77b746 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -1086,12 +1086,7 @@ static void handle_err(struct dec_video *vd) if (ctx->hwdec) { ctx->hwdec_fail_count += 1; - // The FFmpeg VT hwaccel is buggy and can crash after 1 broken frame. - bool force = false; -#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57, 82, 101) - force |= ctx->hwdec && ctx->hwdec->type == HWDEC_VIDEOTOOLBOX; -#endif - if (ctx->hwdec_fail_count >= opts->software_fallback || force) + if (ctx->hwdec_fail_count >= opts->software_fallback) ctx->hwdec_failed = true; } } -- cgit v1.2.3