Skip to content
Snippets Groups Projects
Commit 2467d8d9 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

ra288: return error if input buffer is too small

parent 0131e70a
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data, ...@@ -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 *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment