avcodec/svq3: Use av_mallocz_array() for emu_edge_buffer
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 14 Jan 2015 12:23:57 +0000 (13:23 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 14 Jan 2015 12:23:57 +0000 (13:23 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/svq3.c

index 5fa370a4d2a9c5ed84ba3bf4bad947896a71e500..a3354d1769370c8d59ab228bcb6542205560c718 100644 (file)
@@ -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);
     }