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

+8 -4
View File
@@ -364,8 +364,10 @@ static NSArray<SBVobSubTrack *> * LoadVobSubSubtitles(NSURL *theDirectory, NSStr
sample->data = calloc(1, 2);
sample->duration = startTime - lastTime;
sample->offset = 0;
sample->timestamp = startTime;
sample->isSync = YES;
sample->presentationTimestamp = startTime;
sample->presentationOutputTimestamp = startTime;
sample->decodeTimestamp = startTime;
sample->flags |= MP42SampleBufferFlagIsSync;
sample->trackId = track.sourceId;
[self enqueue:sample];
@@ -377,8 +379,10 @@ static NSArray<SBVobSubTrack *> * LoadVobSubSubtitles(NSURL *theDirectory, NSStr
sample->size = size;
sample->duration = duration;
sample->offset = 0;
sample->timestamp = startTime;
sample->isSync = YES;
sample->presentationTimestamp = startTime;
sample->presentationOutputTimestamp = startTime;
sample->decodeTimestamp = startTime;
sample->flags |= MP42SampleBufferFlagIsSync;
sample->trackId = track.sourceId;
[self enqueue:sample];