Do not set the hd tag to 4k video.

This commit is contained in:
Damiano Galassi committed 2019-03-16 12:02:21 +01:00
1 parent ce3c74a767
commit 797b40e327
1 file changed
+1 -1
+1 -1
View File
@@ -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