mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/svq1dec: use av_malloc_array() to allocate pmv
This commit is contained in:
parent
0ea2bda099
commit
7c66d24460
|
@ -679,7 +679,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data,
|
|||
if (result < 0)
|
||||
return result;
|
||||
|
||||
pmv = av_malloc((FFALIGN(s->width, 16) / 8 + 3) * sizeof(*pmv));
|
||||
pmv = av_malloc_array(FFALIGN(s->width, 16) / 8 + 3, sizeof(*pmv));
|
||||
if (!pmv)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
|
Loading…
Reference in New Issue