Set the timescale in the samples.

This commit is contained in:
Damiano Galassi committed 2020-03-10 15:55:09 +01:00
1 parent 3cdb61c12a
commit 9d7645ab3d
3 files changed
+25 -8

No files matched your search

+1
View File
@@ -363,6 +363,7 @@ typedef struct MP4DemuxHelper {
MP42SampleBuffer *sample = [[MP42SampleBuffer alloc] init];
sample->data = pBytes;
sample->size = numBytes;
sample->timescale = demuxHelper->timeScale;
sample->duration = duration;
sample->offset = renderingOffset;
sample->decodeTimestamp = pStartTime;