Do not set the 4k tag automatically.

This commit is contained in:
Damiano Galassi committed 2019-11-09 10:55:25 +01:00
1 parent 84e84af677
commit 942afa630a
1 file changed
+2 -2
+2 -2
View File
@@ -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