avcodec/buffersrc: use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 12 May 2014 10:24:25 +0000 (12:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 12 May 2014 10:24:25 +0000 (12:24 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/buffersrc.c

index f910ae5..bb44e45 100644 (file)
@@ -271,7 +271,7 @@ do {                                                                    \
 
         if (planes > FF_ARRAY_ELEMS(frame->buf)) {
             frame->nb_extended_buf = planes - FF_ARRAY_ELEMS(frame->buf);
-            frame->extended_buf = av_mallocz(sizeof(*frame->extended_buf) *
+            frame->extended_buf = av_mallocz_array(sizeof(*frame->extended_buf),
                                              frame->nb_extended_buf);
             if (!frame->extended_buf) {
                 ret = AVERROR(ENOMEM);