From 3558c7645240a191c3e4672eabe7b6ae1ee4f4ae Mon Sep 17 00:00:00 2001 From: kingslay Date: Tue, 16 Jan 2024 00:53:51 +0800 Subject: [PATCH] fix crash --- Sources/KSPlayer/AVPlayer/KSOptions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/KSPlayer/AVPlayer/KSOptions.swift b/Sources/KSPlayer/AVPlayer/KSOptions.swift index 2a0fe487e..cd72579c2 100644 --- a/Sources/KSPlayer/AVPlayer/KSOptions.swift +++ b/Sources/KSPlayer/AVPlayer/KSOptions.swift @@ -268,9 +268,9 @@ open class KSOptions { } } - private var idetTypeMap = [VideoInterlacingType: Int]() + private var idetTypeMap = [VideoInterlacingType: UInt]() open func filter(log: String) { - if log.starts(with: "Repeated Field:") { + if log.starts(with: "Repeated Field:"), autoDeInterlace { for str in log.split(separator: ",") { let map = str.split(separator: ":") if map.count >= 2 {