[FFmpeg-cvslog] swr/resample: fix integer overflow, add missing cast
Michael Niedermayer
git at videolan.org
Mon Feb 4 04:18:59 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 4 03:53:10 2013 +0100| [b8c55590d54dc076fb7cd003317cbd84cb7d8855] | committer: Michael Niedermayer
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 <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b8c55590d54dc076fb7cd003317cbd84cb7d8855
---
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 b62901d..5bc12bc 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; i<c->filter_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; i<c->filter_length; i++){
More information about the ffmpeg-cvslog
mailing list