summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-03-14 11:48:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2015-03-14 14:05:22 +0100
commitc4bf3833f4663fd484441907f73c5bc4700021a4 (patch)
tree7f014c6e53930fe2e08c8e7ace3f35aa8d4cf31f /libavcodec/ac3dec.c
parentb0834400608b3980c06bf6d2cf747116e60d10c7 (diff)
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>
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index ce451865db..ae4129ff9d 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);