aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/resample_dsp.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-10-12 19:37:46 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-13 12:51:10 +0200
commite652f69b354bc6b5819012979985794cfd2805c9 (patch)
treee4a5f232f369360fa587de0d9ccc64692004a1fb /libswresample/resample_dsp.c
parent3b336ec2fbd4b9e16144d3247428009c6fb301f0 (diff)
downloadffmpeg-e652f69b354bc6b5819012979985794cfd2805c9.tar.gz
x86: simple_idct10_template: fix overflow in pass
When the input of a pass has 15 or 16 bits of precision (in particular the column pass), the addition of a bias to W4 may lead to overflows in the input to pmaddwd. This requires postponing the adding of the bias to after the first butterfly. To do so, the fact that m15, unused although zeroed, is exploited. In case the pass is safe, an address can be directly used, and the number of xmm regs can be decreased. Otherwise, the 32bits bias is loaded into it. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswresample/resample_dsp.c')
0 files changed, 0 insertions, 0 deletions