[FFmpeg-cvslog] avfilter/af_channelmap: Use av_mallocz_array()

Michael Niedermayer git at videolan.org
Sat Jun 7 15:11:09 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun  7 15:05:51 2014 +0200| [a62814abf45e8ec15f3ff7bd15d13aae8d3ed6e5] | committer: Michael Niedermayer

avfilter/af_channelmap: Use av_mallocz_array()

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

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

 libavfilter/af_channelmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c
index dac19b1..b3b5aca 100644
--- a/libavfilter/af_channelmap.c
+++ b/libavfilter/af_channelmap.c
@@ -312,7 +312,7 @@ static int channelmap_filter_frame(AVFilterLink *inlink, AVFrame *buf)
     if (nch_out > nch_in) {
         if (nch_out > FF_ARRAY_ELEMS(buf->data)) {
             uint8_t **new_extended_data =
-                av_mallocz(nch_out * sizeof(*buf->extended_data));
+                av_mallocz_array(nch_out, sizeof(*buf->extended_data));
             if (!new_extended_data) {
                 av_frame_free(&buf);
                 return AVERROR(ENOMEM);



More information about the ffmpeg-cvslog mailing list