mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
ra288: return error if input buffer is too small
This commit is contained in:
+1
-1
@@ -178,7 +178,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
|
|||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"Error! Input buffer is too small [%d<%d]\n",
|
"Error! Input buffer is too small [%d<%d]\n",
|
||||||
buf_size, avctx->block_align);
|
buf_size, avctx->block_align);
|
||||||
return 0;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
out_size = RA288_BLOCK_SIZE * RA288_BLOCKS_PER_FRAME *
|
out_size = RA288_BLOCK_SIZE * RA288_BLOCKS_PER_FRAME *
|
||||||
|
|||||||
Reference in New Issue
Block a user