You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
matroskadec: fix return code for too long xiph laces
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1993,7 +1993,7 @@ static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf,
|
|||||||
for (n = 0; res == 0 && n < *laces - 1; n++) {
|
for (n = 0; res == 0 && n < *laces - 1; n++) {
|
||||||
while (1) {
|
while (1) {
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
res = AVERROR_EOF;
|
res = AVERROR_INVALIDDATA;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
temp = *data;
|
temp = *data;
|
||||||
|
Reference in New Issue
Block a user