From 9ed0e2d9922111c8423da62df955ee15c8839f49 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 14 Sep 2020 09:24:24 +0200 Subject: [PATCH] Fix a infinite loop in mkv demuxer end routine. --- MP42/MP42MkvImporter.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MP42/MP42MkvImporter.m b/MP42/MP42MkvImporter.m index dcd8495..7fde2b1 100644 --- a/MP42/MP42MkvImporter.m +++ b/MP42/MP42MkvImporter.m @@ -1135,7 +1135,7 @@ static uint64_t timescale(TrackInfo *trackInfo) if (demuxHelper->queue) { - while ([demuxHelper->queue count]) { + while (demuxHelper->queue.count) { if (demuxHelper->bufferFlush == 1) { // add a last sample to get the duration for the last frame MatroskaSample *lastSample = [demuxHelper->queue lastObject]; @@ -1198,7 +1198,7 @@ static uint64_t timescale(TrackInfo *trackInfo) } } else { - continue; + break; } } }