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:
8 files changed
+83
-66
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user