# HG changeset patch # User kostya # Date 1219556865 0 # Node ID eb4802bc73f0fe12e2ae110259a42de5469d6496 # Parent e27395cc73210f722071e51fc37dd33fbd49083a Correct scaling factor in DCA decoder synthesis. Patch by Alexander Patrakov ($lastname at gmail.com) Thread: dca.c: output scale is a bit off diff -r e27395cc7321 -r eb4802bc73f0 dca.c --- 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 */ ); }