Commit 8089c652 authored by Vitor Sessak's avatar Vitor Sessak

Check *data_size in decode_frame()

Originally committed as revision 14636 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 59917046
......@@ -236,6 +236,9 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
return 0;
}
if (*data_size < 32*5*2)
return -1;
init_get_bits(&gb, buf, avctx->block_align * 8);
for (i=0; i < 32; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment