diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-04 03:53:10 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-04 04:05:59 +0100 |
commit | b8c55590d54dc076fb7cd003317cbd84cb7d8855 (patch) | |
tree | 85e8a465afb01fa2d09caf4e7cdc6b882d29d1e9 /libswresample | |
parent | 91debec976d2535e402c8f6326e70589a2776a38 (diff) | |
download | ffmpeg-b8c55590d54dc076fb7cd003317cbd84cb7d8855.tar.gz |
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@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r-- | libswresample/resample_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; 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++){ |