diff options
author | wm4 <wm4@nowhere> | 2017-09-26 19:13:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-09-26 19:13:26 +0200 |
commit | 9b60398f4e2710e304eb4bbb51ed70e0b8523845 (patch) | |
tree | 9af483e3ac1fb5a7cdc0b4420a4c1b86fd21135c /video/decode/vd_lavc.c | |
parent | a730717281c08934c3b6a00313881ecc9280ad5c (diff) | |
download | mpv-9b60398f4e2710e304eb4bbb51ed70e0b8523845.tar.bz2 mpv-9b60398f4e2710e304eb4bbb51ed70e0b8523845.tar.xz |
video: remove old videotoolbox support
Like as in previous commits, you need a very recent FFmpeg (probably git
master).
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 7 |
1 files changed, 1 insertions, 6 deletions
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; } } |