[FFmpeg-cvslog] avfilter/af_ashowinfo: Use av_realloc_array()

Michael Niedermayer git at videolan.org
Tue Jan 20 17:06:35 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 20 16:26:42 2015 +0100| [081e117bfee0e2a1586fff00b82c7d59631d9775] | committer: Michael Niedermayer

avfilter/af_ashowinfo: Use av_realloc_array()

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

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

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

diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c
index ee95029..0e6c6c0 100644
--- a/libavfilter/af_ashowinfo.c
+++ b/libavfilter/af_ashowinfo.c
@@ -159,7 +159,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
     int data_size   = buf->nb_samples * block_align;
     int planes      = planar ? channels : 1;
     int i;
-    void *tmp_ptr = av_realloc(s->plane_checksums, channels * sizeof(*s->plane_checksums));
+    void *tmp_ptr = av_realloc_array(s->plane_checksums, channels, sizeof(*s->plane_checksums));
 
     if (!tmp_ptr)
         return AVERROR(ENOMEM);



More information about the ffmpeg-cvslog mailing list