Pass the force hvc1 option to the library instead of sharing a user default.

This commit is contained in:
Damiano Galassi committed 2020-02-08 13:46:41 +01:00
1 parent fbc464e643
commit 0319da5d7c
3 files changed
+9 -1

No files matched your search

+4
View File
@@ -84,6 +84,10 @@ final class Document: NSDocument {
options[MP42ChaptersPreviewPosition] = Prefs.chaptersPreviewPosition
}
if Prefs.forceHvc1 {
options[MP42ForceHvc1] = true
}
if let accessoryViewController = accessoryViewController {
options[MP4264BitData] = accessoryViewController._64bit_data.state == .on ? true : false
options[MP4264BitTime] = accessoryViewController._64bit_time.state == .on ? true : false
+4
View File
@@ -81,6 +81,10 @@ import MP42Foundation
attributes[MP42GenerateChaptersPreviewTrack] = true
attributes[MP42ChaptersPreviewPosition] = Prefs.chaptersPreviewPosition
}
if Prefs.forceHvc1 {
attributes[MP42ForceHvc1] = true
}
}
convenience init(mp4: MP42File) {