[FFmpeg-cvslog] r14937 - trunk/libavcodec/dca.c

kostya subversion
Sun Aug 24 07:47:45 CEST 2008


Author: kostya
Date: Sun Aug 24 07:47:45 2008
New Revision: 14937

Log:
Correct scaling factor in DCA decoder synthesis.
Patch by Alexander Patrakov ($lastname at gmail.com) 
Thread: dca.c: output scale is a bit off


Modified:
   trunk/libavcodec/dca.c

Modified: trunk/libavcodec/dca.c
==============================================================================
--- trunk/libavcodec/dca.c	(original)
+++ trunk/libavcodec/dca.c	Sun Aug 24 07:47:45 2008
@@ -990,7 +990,7 @@ static int dca_subsubframe(DCAContext * 
 /*        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 */ );
     }
 




More information about the ffmpeg-cvslog mailing list