ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Wed Jan 14 
13:23:57 2015 +0100| [e6f1601d6d519eda1a1801fafc0fc806d9a3cd9d] | committer: 
Michael Niedermayer

avcodec/svq3: Use av_mallocz_array() for emu_edge_buffer

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6f1601d6d519eda1a1801fafc0fc806d9a3cd9d
---

 libavcodec/svq3.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 5fa370a..a3354d1 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);
     }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to