mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Check *data_size in decode_frame()
Originally committed as revision 14636 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5991704634
commit
8089c652a7
@ -236,6 +236,9 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*data_size < 32*5*2)
|
||||||
|
return -1;
|
||||||
|
|
||||||
init_get_bits(&gb, buf, avctx->block_align * 8);
|
init_get_bits(&gb, buf, avctx->block_align * 8);
|
||||||
|
|
||||||
for (i=0; i < 32; i++) {
|
for (i=0; i < 32; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user