1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

matroskadec: fix return code for too long xiph laces

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-04-04 15:13:53 +02:00
parent 740ebe468c
commit 14de77d677

View File

@ -1993,7 +1993,7 @@ static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf,
for (n = 0; res == 0 && n < *laces - 1; n++) {
while (1) {
if (size == 0) {
res = AVERROR_EOF;
res = AVERROR_INVALIDDATA;
break;
}
temp = *data;