From 247d8c9105be6e0d9dd8d1e340b5586f596c0893 Mon Sep 17 00:00:00 2001 From: kintan Date: Wed, 25 Oct 2023 23:03:52 +0800 Subject: [PATCH] fix #525 --- Demo/SwiftUI/Shared/MovieModel.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Demo/SwiftUI/Shared/MovieModel.swift b/Demo/SwiftUI/Shared/MovieModel.swift index 1c9108d75..061cb89e6 100644 --- a/Demo/SwiftUI/Shared/MovieModel.swift +++ b/Demo/SwiftUI/Shared/MovieModel.swift @@ -24,7 +24,9 @@ class MEOptions: KSOptions { override func process(assetTrack: some MediaPlayerTrack) { if assetTrack.mediaType == .video { if [FFmpegFieldOrder.bb, .bt, .tt, .tb].contains(assetTrack.fieldOrder) { - videoFilters.append("yadif_videotoolbox=mode=\(MEOptions.yadifMode):parity=-1:deint=1") + // todo 先不要用yadif_videotoolbox,不然会crash。这个后续在看下要怎么解决 + videoFilters.append("yadif=mode=\(MEOptions.yadifMode):parity=-1:deint=1") + hardwareDecode = false asynchronousDecompression = false } #if os(tvOS) || os(xrOS)