Fix a infinite loop in mkv demuxer end routine.

This commit is contained in:
Damiano Galassi committed 2020-09-14 09:24:24 +02:00
1 parent 0ed0f96193
commit 9ed0e2d992
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
}
}