[FFmpeg-cvslog] vf_sab: use av_malloc_array()

Michael Niedermayer git at videolan.org
Wed Jun 18 00:14:43 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 18 00:07:12 2014 +0200| [f31fd067130fff94e652808509fe594c2d82361f] | committer: Michael Niedermayer

vf_sab: use av_malloc_array()

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

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

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

diff --git a/libavfilter/vf_sab.c b/libavfilter/vf_sab.c
index 51bbc5a..aa38b53 100644
--- a/libavfilter/vf_sab.c
+++ b/libavfilter/vf_sab.c
@@ -180,7 +180,7 @@ static int open_filter_param(FilterParam *f, int width, int height, unsigned int
     vec = sws_getGaussianVec(f->radius, f->quality);
     f->dist_width    = vec->length;
     f->dist_linesize = FFALIGN(vec->length, 8);
-    f->dist_coeff    = av_malloc(f->dist_width * f->dist_linesize * sizeof(*f->dist_coeff));
+    f->dist_coeff    = av_malloc_array(f->dist_width, f->dist_linesize * sizeof(*f->dist_coeff));
     if (!f->dist_coeff) {
         sws_freeVec(vec);
         return AVERROR(ENOMEM);



More information about the ffmpeg-cvslog mailing list