mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
Block a user