Fix a infinite loop in mkv demuxer end routine.
This commit is contained in:
1 file changed
+2
-2
@@ -1135,7 +1135,7 @@ static uint64_t timescale(TrackInfo *trackInfo)
|
|||||||
|
|
||||||
if (demuxHelper->queue) {
|
if (demuxHelper->queue) {
|
||||||
|
|
||||||
while ([demuxHelper->queue count]) {
|
while (demuxHelper->queue.count) {
|
||||||
if (demuxHelper->bufferFlush == 1) {
|
if (demuxHelper->bufferFlush == 1) {
|
||||||
// add a last sample to get the duration for the last frame
|
// add a last sample to get the duration for the last frame
|
||||||
MatroskaSample *lastSample = [demuxHelper->queue lastObject];
|
MatroskaSample *lastSample = [demuxHelper->queue lastObject];
|
||||||
@@ -1198,7 +1198,7 @@ static uint64_t timescale(TrackInfo *trackInfo)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user