Commit c4bf3833 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer

ac3_fixed: fix computation of spx_noise_blend

It was set to 1 instead of sqrt(3)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b0834400
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment