diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-04 15:13:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-04 15:13:53 +0200 |
commit | 14de77d677143350d1d7eb195361bae821e30d13 (patch) | |
tree | 5beca013640313c66088e721097a5bcd9fea1ace /libavformat/matroskadec.c | |
parent | 740ebe468c0567cac03ef7e6b4b9fd0253b97da2 (diff) | |
download | ffmpeg-14de77d677143350d1d7eb195361bae821e30d13.tar.gz |
matroskadec: fix return code for too long xiph laces
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 688a61556c..d068453e62 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; |