Rename MP42Track Id to trackId

This commit is contained in:
Damiano Galassi committed 2015-09-14 11:23:14 +02:00
1 parent 1319ffb9e2
commit 24d215fda9
15 files changed
+243 -206

No files matched your search

+5 -5
View File
@@ -393,7 +393,7 @@
if (dstTrackId) {
MP4SetTrackDurationPerChunk(_fileHandle, dstTrackId, timeScale / 8);
track.Id = dstTrackId;
track.trackId = dstTrackId;
}
}
@@ -436,7 +436,7 @@
MP42SampleBuffer *sampleBuffer = nil;
for (int i = 0; i < 100 && (sampleBuffer = [track copyNextSample]) != nil; i++) {
if (!MP4WriteSample(_fileHandle, track.Id,
if (!MP4WriteSample(_fileHandle, track.trackId,
sampleBuffer->data, sampleBuffer->size,
sampleBuffer->duration, sampleBuffer->offset,
sampleBuffer->isSync)) {
@@ -478,9 +478,9 @@
for (MP42Track *track in _workingTracks) {
if(track.muxer_helper->converter && track.needConversion && [track isMemberOfClass:[MP42AudioTrack class]]) {
NSData *magicCookie = [track.muxer_helper->converter magicCookie];
MP4SetTrackESConfiguration(_fileHandle, track.Id,
[magicCookie bytes],
[magicCookie length]);
MP4SetTrackESConfiguration(_fileHandle, track.trackId,
magicCookie.bytes,
magicCookie.length);
}
}