diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-08 00:29:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-23 15:14:40 +0200 |
commit | d7573f88a9b9d10e9301b4a3b31784aab3407243 (patch) | |
tree | 624a359dc449a8ca92b2a21c5a2f82c32688936a /libswresample/resample.c | |
parent | b1ac8b1d3842383a74c7579cca09fc8212b6f9e8 (diff) | |
download | ffmpeg-d7573f88a9b9d10e9301b4a3b31784aab3407243.tar.gz |
swresample/resample: use av_malloc_array() where appropriate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5027f39712fdce25b9008e72d52e5abfeefd5fe6)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample.c')
-rw-r--r-- | libswresample/resample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/resample.c b/libswresample/resample.c index 3c77d6939c..1f5724ca58 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) |