[FFmpeg-cvslog] swresample/resample: use av_malloc_array() where appropriate

Michael Niedermayer git at videolan.org
Tue Apr 22 00:59:47 CEST 2014


ffmpeg | branch: release/1.1 | Michael Niedermayer <michaelni at gmx.at> | Tue Apr  8 00:29:26 2014 +0200| [eea1c5daa0504e7e0ca2e0b7d2c99659f34f3b55] | committer: Michael Niedermayer

swresample/resample: use av_malloc_array() where appropriate

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 5027f39712fdce25b9008e72d52e5abfeefd5fe6)

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

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

 libswresample/resample.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswresample/resample.c b/libswresample/resample.c
index 96bc921..4ced9fa 100644
--- a/libswresample/resample.c
+++ b/libswresample/resample.c
@@ -95,7 +95,7 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap
                         int filter_type, int kaiser_beta){
     int ph, i;
     double x, y, w;
-    double *tab = av_malloc(tap_count * sizeof(*tab));
+    double *tab = av_malloc_array(tap_count,  sizeof(*tab));
     const int center= (tap_count-1)/2;
 
     if (!tab)



More information about the ffmpeg-cvslog mailing list