diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-08 00:29:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 00:21:28 +0200 |
commit | eea1c5daa0504e7e0ca2e0b7d2c99659f34f3b55 (patch) | |
tree | 2177cf9ccf5f15f795f66f559181f235bbbfb822 | |
parent | 2880de35b53d3ff677db97bcd089ecbc51ec0694 (diff) | |
download | ffmpeg-eea1c5daa0504e7e0ca2e0b7d2c99659f34f3b55.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>
-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 96bc921eab..4ced9fafeb 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) |