Browse Source

Ignore overrun in spectral RLE decoding, fixes

http://www.missouri.edu/~bah347/gprime/nintendothemesacappellax.wmv

Originally committed as revision 5532 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Reimar Döffinger 19 years ago
parent
commit
a5ecd69ec1
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavcodec/wmadec.c

+ 4
- 1
libavcodec/wmadec.c View File

@@ -908,7 +908,10 @@ static int wma_decode_block(WMADecodeContext *s)
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)


Loading…
Cancel
Save