Write the sgpd/sbgp only when importing tracks, do not write a guessed delay on save on every mp4.

Fixed another crash in avfoundation edit lists code.
This commit is contained in:
Damiano Galassi committed 2017-09-03 11:41:28 +02:00
1 parent adb8735bf4
commit 9f7089b831
8 files changed
+83 -66

No files matched your search

+17
View File
@@ -784,6 +784,11 @@ static NSString * TrackNameToString(TrackInfo *track)
return result;
}
- (BOOL)audioTrackUsesExplicitEncoderDelay:(MP42Track *)track;
{
return YES;
}
// Methods to extract all the samples from the active tracks at the same time
- (void)demux
{
@@ -1206,6 +1211,18 @@ static NSString * TrackNameToString(TrackInfo *track)
editDuration,
0);
}
else {
MP4Duration editDuration = MP4ConvertFromTrackDuration(fileHandle, trackId,
MP4GetTrackDuration(fileHandle, trackId),
MP4GetTimeScale(fileHandle));
MP4AddTrackEdit(fileHandle,
trackId,
MP4_INVALID_EDIT_ID,
0,
editDuration,
0);
}
}
return YES;