Clean up headers and MP42SampleBuffer.

This commit is contained in:
Damiano Galassi committed 2016-07-27 17:37:27 +02:00
1 parent e2adc70d63
commit 7b1c7d0384
22 files changed
+122 -109

No files matched your search

+3 -2
View File
@@ -503,6 +503,7 @@
// Iterate the tracks array and mux the samples
for (MP42Track *track in _workingTracks) {
MP42SampleBuffer *sampleBuffer = nil;
MP42TrackId trackId = track.trackId;
for (int i = 0; i < 100 && (sampleBuffer = [track copyNextSample]) != nil; i++) {
@@ -511,10 +512,10 @@
track.muxer_helper->done = 1;
}
else if (!MP4WriteSample(_fileHandle, track.trackId,
else if (!MP4WriteSample(_fileHandle, trackId,
sampleBuffer->data, sampleBuffer->size,
sampleBuffer->duration, sampleBuffer->offset,
sampleBuffer->isSync)) {
sampleBuffer->flags & MP42SampleBufferFlagIsSync)) {
_cancelled = YES;
}