Add preference to allow 4k hd video metadata auto detection (#164)

This commit is contained in:
Brett Pynn authored and GitHub committed 2026-10-05 07:57:25 +02:00
1 parent a3f73cf1f8
commit 85854a2f06
3 files changed
+50 -23

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ extension MP42File {
var hdType: TrackHDType? {
for track in tracks(withMediaType: kMP42MediaType_Video) as! [MP42VideoTrack] {
if (track.width > 1920 && track.height > 1088) {
return nil // .hd4k 4k breaks AppleTV streaming
return Prefs.set4KHDVideoMetadata ? .hd4k : nil
} 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 {