diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-10 02:46:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-10 03:03:17 +0200 |
commit | d62030ffcaf14dd801918fe26e670d68fdc21984 (patch) | |
tree | 9aa7ef5e1fef2a5168f26e99ed2eb7131c2f16d3 /libswresample/rematrix_template.c | |
parent | b04bbe6b869581d572fe6b1dc351a2fd8e134cc1 (diff) | |
download | ffmpeg-d62030ffcaf14dd801918fe26e670d68fdc21984.tar.gz |
swresample/rematrix_template: Fix integer overflow in mix8to2
Fixes: CID1030352
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/rematrix_template.c')
-rw-r--r-- | libswresample/rematrix_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/rematrix_template.c b/libswresample/rematrix_template.c index 6e7e686778..95a3b9a8c0 100644 --- a/libswresample/rematrix_template.c +++ b/libswresample/rematrix_template.c @@ -76,7 +76,7 @@ static void RENAME(mix8to2)(SAMPLE **out, const SAMPLE **in, COEFF *coeffp, inte int i; for(i=0; i<len; i++) { - INTER t = in[2][i]*coeffp[0*8+2] + in[3][i]*coeffp[0*8+3]; + INTER t = in[2][i]*(INTER)coeffp[0*8+2] + in[3][i]*(INTER)coeffp[0*8+3]; out[0][i] = R(t + in[0][i]*(INTER)coeffp[0*8+0] + in[4][i]*(INTER)coeffp[0*8+4] + in[6][i]*(INTER)coeffp[0*8+6]); out[1][i] = R(t + in[1][i]*(INTER)coeffp[1*8+1] + in[5][i]*(INTER)coeffp[1*8+5] + in[7][i]*(INTER)coeffp[1*8+7]); } |