summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 00:29:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 00:29:26 +0200
commit5027f39712fdce25b9008e72d52e5abfeefd5fe6 (patch)
tree11bf210c7c932cac2a1f815414f9b1dcaddf3e14 /libswresample
parenta5290cb1ac047851563da7aca06569e3ada55f79 (diff)
swresample/resample: use av_malloc_array() where appropriate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/resample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/resample.c b/libswresample/resample.c
index 77653a7a9f..ac87671902 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)