From 36ba0543a91c2ece670f49555a637abb195a11ae Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Thu, 24 Nov 2016 11:51:23 +0100 Subject: [PATCH] Do not pass 0 duration samples in mkv importer. --- MP42/MP42MkvImporter.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MP42/MP42MkvImporter.m b/MP42/MP42MkvImporter.m index 0603eba..eb3ba65 100644 --- a/MP42/MP42MkvImporter.m +++ b/MP42/MP42MkvImporter.m @@ -896,6 +896,10 @@ static NSString * TrackNameToString(TrackInfo *track) } } + if (duration == 0) { + duration = 10000; + } + // offset calculation int64_t offset = currentSample->startTime - demuxHelper->currentTime;