diff --git a/IINA+/Utils/VideoDecoder/Huya.swift b/IINA+/Utils/VideoDecoder/Huya.swift index ef599cb8..91e8777a 100644 --- a/IINA+/Utils/VideoDecoder/Huya.swift +++ b/IINA+/Utils/VideoDecoder/Huya.swift @@ -188,7 +188,11 @@ struct HuyaStream: Unmarshaling { } var us = urls.map { - $0.replacingOccurrences(of: "&ratio=0", with: "&ratio=\(rate)") + if rate != 0 { + $0.replacingOccurrences(of: "&ratio=0", with: "&ratio=\(rate)") + } else { + $0.replacingOccurrences(of: "&ratio=0", with: "") + } } var s = Stream(url: us.removeFirst())