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

kostya subversion at mplayerhq.hu
Thu Jul 17 07:47:00 CEST 2008


Author: kostya
Date: Thu Jul 17 07:47:00 2008
New Revision: 2807

Log:
Correct threshold in quiet use

Modified:
   aacenc/aacpsy.c

Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c	(original)
+++ aacenc/aacpsy.c	Thu Jul 17 07:47:00 2008
@@ -498,8 +498,9 @@ static void psy_3gpp_process(AACPsyConte
         for(g = apc->num_bands1024 - 2; g >= 0; g--)
             pctx->band[ch][g].thr = FFMAX(pctx->band[ch][g].thr, pctx->band[ch][g+1].thr * pctx->s_hi[g+1]);
         for(g = 0; g < apc->num_bands1024; g++){
-            pctx->band[ch][g].thr_quiet = FFMAX(pctx->band[ch][g].thr, pctx->ath[g] *0.5);
-            pctx->band[ch][g].thr = fmaxf(PSY_3GPP_RPEMIN*pctx->band[ch][g].thr_quiet, fminf(pctx->band[ch][g].thr_quiet, PSY_3GPP_RPELEV*pctx->prev_band[ch][g].thr_quiet));
+            pctx->band[ch][g].thr_quiet = FFMAX(pctx->band[ch][g].thr, pctx->ath[g]);
+            pctx->band[ch][g].thr_quiet = fmaxf(PSY_3GPP_RPEMIN*pctx->band[ch][g].thr_quiet, fminf(pctx->band[ch][g].thr_quiet, PSY_3GPP_RPELEV*pctx->prev_band[ch][g].thr_quiet));
+            pctx->band[ch][g].thr = FFMAX(pctx->band[ch][g].thr, pctx->band[ch][g].thr_quiet * 0.25);
         }
     }
 



More information about the FFmpeg-soc mailing list