[FFmpeg-cvslog] matroskadec: fix return code for too long xiph laces

Michael Niedermayer git at videolan.org
Thu Apr 4 15:53:03 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr  4 15:13:53 2013 +0200| [14de77d677143350d1d7eb195361bae821e30d13] | committer: Michael Niedermayer

matroskadec: fix return code for too long xiph laces

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=14de77d677143350d1d7eb195361bae821e30d13
---

 libavformat/matroskadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 688a615..d068453 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;



More information about the ffmpeg-cvslog mailing list