diff options
author | Alexander E. Patrakov <patrakov@gmail.com> | 2008-08-24 05:47:45 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2008-08-24 05:47:45 +0000 |
commit | cc09e77e2a1900da662e59571eaef15737fef28d (patch) | |
tree | a34c6dfb17f5e942b8733985bc6959d62add8276 /libavcodec/dca.c | |
parent | 0c3021eade9cde6c3658df40b929452ed3c6de19 (diff) | |
download | ffmpeg-streaming-cc09e77e2a1900da662e59571eaef15737fef28d.zip ffmpeg-streaming-cc09e77e2a1900da662e59571eaef15737fef28d.tar.gz |
Correct scaling factor in DCA decoder synthesis.
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
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r-- | libavcodec/dca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c index f7631d4..ef691f2 100644 --- a/libavcodec/dca.c +++ b/libavcodec/dca.c @@ -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 */ ); } |