提交 a5ecd69e 编写于 作者: R Reimar Döffinger

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
上级 2122f9c0
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册