From b8c55590d54dc076fb7cd003317cbd84cb7d8855 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 4 Feb 2013 03:53:10 +0100 Subject: [PATCH] swr/resample: fix integer overflow, add missing cast The effects of this are limited to numeric errors in the output Signed-off-by: Michael Niedermayer --- libswresample/resample_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/resample_template.c b/libswresample/resample_template.c index b62901d69d..5bc12bcb71 100644 --- a/libswresample/resample_template.c +++ b/libswresample/resample_template.c @@ -151,7 +151,7 @@ int RENAME(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int break; }else if(sample_index < 0){ for(i=0; ifilter_length; i++) - val += src[FFABS(sample_index + i)] * filter[i]; + val += src[FFABS(sample_index + i)] * (FELEM2)filter[i]; }else if(c->linear){ FELEM2 v2=0; for(i=0; ifilter_length; i++){