mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
b083440060
commit
c4bf3833f4
@ -939,7 +939,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
|
|||||||
nblend = 0;
|
nblend = 0;
|
||||||
sblend = 0x800000;
|
sblend = 0x800000;
|
||||||
} else if (nratio > 0x7fffff) {
|
} else if (nratio > 0x7fffff) {
|
||||||
nblend = 0x800000;
|
nblend = 14529495; // sqrt(3) in FP.23
|
||||||
sblend = 0;
|
sblend = 0;
|
||||||
} else {
|
} else {
|
||||||
nblend = fixed_sqrt(nratio, 23);
|
nblend = fixed_sqrt(nratio, 23);
|
||||||
|
Loading…
Reference in New Issue
Block a user