changeset 7680:eb4802bc73f0 libavcodec

Correct scaling factor in DCA decoder synthesis. Patch by Alexander Patrakov ($lastname at gmail.com) Thread: dca.c: output scale is a bit off
author kostya
date Sun, 24 Aug 2008 05:47:45 +0000
parents e27395cc7321
children bcc058a7b12e
files dca.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dca.c	Sun Aug 24 04:55:32 2008 +0000
+++ b/dca.c	Sun Aug 24 05:47:45 2008 +0000
@@ -990,7 +990,7 @@
 /*        static float pcm_to_double[8] =
             {32768.0, 32768.0, 524288.0, 524288.0, 0, 8388608.0, 8388608.0};*/
          qmf_32_subbands(s, k, subband_samples[k], &s->samples[256 * k],
-                            2.0 / 3 /*pcm_to_double[s->source_pcm_res] */ ,
+                            M_SQRT1_2 /*pcm_to_double[s->source_pcm_res] */ ,
                             0 /*s->bias */ );
     }