From 942afa630a225da5a88b0eb9565afe13b5d71f79 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 9 Nov 2019 10:55:25 +0100 Subject: [PATCH] Do not set the 4k tag automatically. --- Classes/MP42FileAdditions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/MP42FileAdditions.swift b/Classes/MP42FileAdditions.swift index 4e745c6..38af270 100644 --- a/Classes/MP42FileAdditions.swift +++ b/Classes/MP42FileAdditions.swift @@ -26,9 +26,9 @@ extension MP42File { var hdType: TrackHDType? { for track in tracks(withMediaType: kMP42MediaType_Video) as! [MP42VideoTrack] { - if (track.width > 1920 && track.height > 1088) { + /*if (track.width > 1920 && track.height > 1088) { return .hd4k - } else if (track.width > 1280 || track.height > 720) && track.width <= 1920 && track.height <= 1088 { + } else */ 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