Update to newer libmp4v2, add support for VVC and AV1 Dolby Vision.

This commit is contained in:
Damiano Galassi committed 2024-06-27 11:08:55 +02:00
1 parent a3c2aa6968
commit 9454c452b7
14 files changed
+149 -56

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@
//
import Foundation
import mp4v2
import CMP42
private struct Edit {
/// The media start time of the edit segment in track time scale units of the track in the mp4 file.
@@ -130,7 +130,7 @@ private struct Edit {
private func resetMediaTime() {
let edit = edits[currentEdit]
currentSampleId = MP4GetSampleIdFromTime(fileHandle, trackId, edit.mediaStart, false)
currentSampleId = MP4GetSampleIdFromTime(fileHandle, trackId, edit.mediaStart, 0)
let time = MP4GetSampleTime(fileHandle, trackId, currentSampleId)
currentSampleId -= 1