diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 5fa370a4d2..a3354d1769 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -1110,7 +1110,7 @@ static int get_buffer(AVCodecContext *avctx, H264Picture *pic) goto fail; if (!h->edge_emu_buffer) { - h->edge_emu_buffer = av_mallocz(pic->f.linesize[0] * 17); + h->edge_emu_buffer = av_mallocz_array(pic->f.linesize[0], 17); if (!h->edge_emu_buffer) return AVERROR(ENOMEM); }