Correct scaling factor in DCA decoder synthesis.
authorAlexander E. Patrakov <patrakov@gmail.com>
Sun, 24 Aug 2008 05:47:45 +0000 (05:47 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 24 Aug 2008 05:47:45 +0000 (05:47 +0000)
Patch by Alexander Patrakov ($lastname at gmail.com)
Thread: dca.c: output scale is a bit off

Originally committed as revision 14937 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dca.c

index f7631d4..ef691f2 100644 (file)
@@ -990,7 +990,7 @@ static int dca_subsubframe(DCAContext * s)
 /*        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 */ );
     }