swr: reorder/redesign operations to avoid integer overflow.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Nov 2012 11:20:45 +0000 (12:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Nov 2012 11:33:40 +0000 (12:33 +0100)
commit17da2d9eee6bb3968522a2f1cdb54117260b6b7d
treeda799aff2f60a966e982abb9efdaa898e1190d57
parent0e482a8e49f34bd479b8436da9aee75455c9bcb7
swr: reorder/redesign operations to avoid integer overflow.

This fixes a out of array read.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/resample_template.c