From e6f1601d6d519eda1a1801fafc0fc806d9a3cd9d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 14 Jan 2015 13:23:57 +0100 Subject: [PATCH] avcodec/svq3: Use av_mallocz_array() for emu_edge_buffer Signed-off-by: Michael Niedermayer --- libavcodec/svq3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }