shithub: aacenc

Download patch

ref: 3b2e8325e64141aec18350b902d47599ebf24f2f
parent: d44e2d7e3a6e0cba9781f5366003212652d542e5
author: knik <knik>
date: Fri Aug 30 12:21:44 EDT 2002

extended outer loop exit condition to be faster

--- a/libfaac/aacquant.c
+++ b/libfaac/aacquant.c
@@ -16,7 +16,7 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * $Id: aacquant.c,v 1.11 2001/12/06 19:11:04 menno Exp $
+ * $Id: aacquant.c,v 1.12 2002/08/30 16:21:44 knik Exp $
  */
 
 #include <math.h>
@@ -454,7 +454,7 @@
         } else
             age++;
 
-        if (age > 3 && bestNoiseInfo.over_count == 0)
+	if ((age > 3) || ((bestNoiseInfo.over_count == 0) && (age > 0)))
             break;
 
         notdone = BalanceNoise(coderInfo, distort, xr_pow);