Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5027f39712fdce25b9008e72d52e5abfeefd5fe6)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -95,7 +95,7 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap |
95 | 95 |
int filter_type, int kaiser_beta){ |
96 | 96 |
int ph, i; |
97 | 97 |
double x, y, w; |
98 |
- double *tab = av_malloc(tap_count * sizeof(*tab)); |
|
98 |
+ double *tab = av_malloc_array(tap_count, sizeof(*tab)); |
|
99 | 99 |
const int center= (tap_count-1)/2; |
100 | 100 |
|
101 | 101 |
if (!tab) |