From 797b40e32757fbdf731391c6ca91761381bfc355 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 16 Mar 2019 12:02:21 +0100 Subject: [PATCH] Do not set the hd tag to 4k video. --- Classes/MP42FileAdditions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/MP42FileAdditions.swift b/Classes/MP42FileAdditions.swift index ed14ab5..50f7b68 100644 --- a/Classes/MP42FileAdditions.swift +++ b/Classes/MP42FileAdditions.swift @@ -25,7 +25,7 @@ extension MP42File { var hdType: TrackHDType? { for track in tracks(withMediaType: kMP42MediaType_Video) as! [MP42VideoTrack] { - if track.width > 1280 || track.height > 720 { + if (track.width > 1280 || track.height > 720) && track.width <= 1920 && track.height <= 1088 { return .hd1080p } else if track.width >= 960 && track.height >= 720 || track.width >= 1280 { return .hd720p