diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-03-14 11:48:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 01:52:53 +0100 |
commit | 6915dd49c7c6bf1f2b10f880cf1bb5a11c1d790d (patch) | |
tree | 6b3811f317d79f757975f34139952bfaa79723d5 | |
parent | c657b08fd76a5d09bb36db13dedca839b5bc1ede (diff) | |
download | ffmpeg-6915dd49c7c6bf1f2b10f880cf1bb5a11c1d790d.tar.gz |
ac3_fixed: fix computation of spx_noise_blend
It was set to 1 instead of sqrt(3)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c4bf3833f4663fd484441907f73c5bc4700021a4)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 19903ee16f..dbf20a81f1 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -939,7 +939,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) nblend = 0; sblend = 0x800000; } else if (nratio > 0x7fffff) { - nblend = 0x800000; + nblend = 14529495; // sqrt(3) in FP.23 sblend = 0; } else { nblend = fixed_sqrt(nratio, 23); |