mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
ra288: return error if input buffer is too small
This commit is contained in:
parent
0131e70af5
commit
2467d8d9ea
@ -178,7 +178,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Error! Input buffer is too small [%d<%d]\n",
|
||||
buf_size, avctx->block_align);
|
||||
return 0;
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
out_size = RA288_BLOCK_SIZE * RA288_BLOCKS_PER_FRAME *
|
||||
|
Loading…
Reference in New Issue
Block a user