diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-09-17 15:57:26 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-09-17 19:23:11 +0200 |
commit | 7c66d24460a2b6b5984191dd31a5a4761cd62ab3 (patch) | |
tree | a709485dafe4e171f0801eff30800131bfc1ee13 /libavcodec/svq1dec.c | |
parent | 0ea2bda099c6ede92bedaa1c2545c60ff84f7401 (diff) | |
download | ffmpeg-7c66d24460a2b6b5984191dd31a5a4761cd62ab3.tar.gz |
avcodec/svq1dec: use av_malloc_array() to allocate pmv
Diffstat (limited to 'libavcodec/svq1dec.c')
-rw-r--r-- | libavcodec/svq1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index 25bd3d0253..e67b460ae3 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -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); |