Commit 3f2fd5b4 authored by kostya's avatar kostya

Correct scaling factor in DCA decoder synthesis.

Patch by Alexander Patrakov ($lastname at gmail.com) 
Thread: dca.c: output scale is a bit off


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14937 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e7d245da
...@@ -990,7 +990,7 @@ static int dca_subsubframe(DCAContext * s) ...@@ -990,7 +990,7 @@ static int dca_subsubframe(DCAContext * s)
/* static float pcm_to_double[8] = /* static float pcm_to_double[8] =
{32768.0, 32768.0, 524288.0, 524288.0, 0, 8388608.0, 8388608.0};*/ {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], 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 */ ); 0 /*s->bias */ );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment