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

kostya subversion at mplayerhq.hu
Wed Aug 13 14:22:17 CEST 2008


Author: kostya
Date: Wed Aug 13 14:22:17 2008
New Revision: 3215

Log:
There's no need to adjust thresholds for zero frame

Modified:
   aacenc/aacpsy.c

Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c	(original)
+++ aacenc/aacpsy.c	Wed Aug 13 14:22:17 2008
@@ -716,6 +716,7 @@ static void psy_3gpp_process(AACPsyConte
                 b0  += pch->b[ch];
                 pe0 += pch->pe[ch];
             }
+            if(pe0 == 0.0f) break;
             t0 = pow(2.0, (a0 - pe0)       / (4.0 * b0));
             r  = pow(2.0, (a0 - pe_target) / (4.0 * b0)) - t0;
 



More information about the FFmpeg-soc mailing list