[FFmpeg-cvslog] ac3_fixed: fix computation of spx_noise_blend
Christophe Gisquet
git at videolan.org
Sun Mar 29 03:41:22 CEST 2015
ffmpeg | branch: release/2.4 | Christophe Gisquet <christophe.gisquet at gmail.com> | Sat Mar 14 11:48:58 2015 +0000| [691f9dee0060458e5d3c36346af8c41cf9e74500] | committer: Michael Niedermayer
ac3_fixed: fix computation of spx_noise_blend
It was set to 1 instead of sqrt(3)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit c4bf3833f4663fd484441907f73c5bc4700021a4)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=691f9dee0060458e5d3c36346af8c41cf9e74500
---
libavcodec/ac3dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 80b9394..a0cdb5a 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);
More information about the ffmpeg-cvslog
mailing list