avcodec/svq1dec: use av_malloc_array() to allocate pmv

This commit is contained in:
Paul B Mahol 2020-09-17 15:57:26 +02:00
parent 0ea2bda099
commit 7c66d24460
1 changed files with 1 additions and 1 deletions

View File

@ -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);