Commit dde95268 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

swresample/resample: use av_malloc_array() where appropriate

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5027f397

)
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment