diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-06-27 12:09:58 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-06-27 12:09:58 +0000 |
commit | a5ecd69ec191f6f8e26af9ad3e35e784a34335cb (patch) | |
tree | 252bda8034fb80e4a601ae228e33aa7f763cd326 /libavcodec | |
parent | 2122f9c030e5032c59c77a6b72ecf0f426e1cc0a (diff) | |
download | ffmpeg-a5ecd69ec191f6f8e26af9ad3e35e784a34335cb.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wmadec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 5bf87ac386..f07fab34f8 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -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) |