comparison dca.c @ 7680:eb4802bc73f0 libavcodec

Correct scaling factor in DCA decoder synthesis. Patch by Alexander Patrakov ($lastname at gmail.com) Thread: dca.c: output scale is a bit off
author kostya
date Sun, 24 Aug 2008 05:47:45 +0000
parents 1bdb37f93bd2
children ea9aa2aa4caa
comparison
equal deleted inserted replaced
7679:e27395cc7321 7680:eb4802bc73f0
988 /* 32 subbands QMF */ 988 /* 32 subbands QMF */
989 for (k = 0; k < s->prim_channels; k++) { 989 for (k = 0; k < s->prim_channels; k++) {
990 /* static float pcm_to_double[8] = 990 /* static float pcm_to_double[8] =
991 {32768.0, 32768.0, 524288.0, 524288.0, 0, 8388608.0, 8388608.0};*/ 991 {32768.0, 32768.0, 524288.0, 524288.0, 0, 8388608.0, 8388608.0};*/
992 qmf_32_subbands(s, k, subband_samples[k], &s->samples[256 * k], 992 qmf_32_subbands(s, k, subband_samples[k], &s->samples[256 * k],
993 2.0 / 3 /*pcm_to_double[s->source_pcm_res] */ , 993 M_SQRT1_2 /*pcm_to_double[s->source_pcm_res] */ ,
994 0 /*s->bias */ ); 994 0 /*s->bias */ );
995 } 995 }
996 996
997 /* Down mixing */ 997 /* Down mixing */
998 998