[FFmpeg-soc] [soc]: r2611 - aacenc/aacpsy.c

kostya subversion at mplayerhq.hu
Tue Jul 1 11:30:05 CEST 2008


Author: kostya
Date: Tue Jul  1 11:30:05 2008
New Revision: 2611

Log:
Zero band detection there was wrong.

Modified:
   aacenc/aacpsy.c

Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c	(original)
+++ aacenc/aacpsy.c	Tue Jul  1 11:30:05 2008
@@ -436,7 +436,6 @@ static void psy_3gpp_process(AACPsyConte
         prev_scale = -1;
         cpe->ch[ch].gain = SCALE_ONE_POS;
         for(g = 0; g < apc->num_bands1024; g++){
-            cpe->ch[ch].zeroes[0][g] = pctx->band[ch][g].energy <= pctx->band[ch][g].thr;
             if(cpe->ch[ch].zeroes[0][g]) continue;
             //spec gives constant for lg() but we scaled it for log2()
             cpe->ch[ch].sf_idx[0][g] = (int)(2.66667 * (log2(6.75*pctx->band[ch][g].thr) - log2(pctx->band[ch][g].ffac)));



More information about the FFmpeg-soc mailing list