[Ffmpeg-cvslog] r5532 - trunk/libavcodec/wmadec.c

reimar subversion
Tue Jun 27 14:09:58 CEST 2006


Author: reimar
Date: Tue Jun 27 14:09:58 2006
New Revision: 5532

Modified:
   trunk/libavcodec/wmadec.c

Log:
Ignore overrun in spectral RLE decoding, fixes
http://www.missouri.edu/~bah347/gprime/nintendothemesacappellax.wmv


Modified: trunk/libavcodec/wmadec.c
==============================================================================
--- trunk/libavcodec/wmadec.c	(original)
+++ trunk/libavcodec/wmadec.c	Tue Jun 27 14:09:58 2006
@@ -908,7 +908,10 @@
                     level = -level;
                 ptr += run;
                 if (ptr >= eptr)
-                    return -1;
+                {
+                    av_log(NULL, AV_LOG_ERROR, "overflow in spectral RLE, ignoring\n");
+                    break;
+                }
                 *ptr++ = level;
                 /* NOTE: EOB can be omitted */
                 if (ptr >= eptr)




More information about the ffmpeg-cvslog mailing list