Skip to content

Commit

Permalink
fix #525
Browse files Browse the repository at this point in the history
  • Loading branch information
kingslay committed Oct 25, 2023
1 parent 8014b60 commit 247d8c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Demo/SwiftUI/Shared/MovieModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 247d8c9

Please sign in to comment.