# HG changeset patch # User alexc # Date 1279945406 0 # Node ID 9407360557643df013204f8fb50c97e54ec9407e # Parent 65619c2230e72f8270a76a92963e154a8c457d3e aacenc: Prevent premature termination of the two loop search. diff -r 65619c2230e7 -r 940736055764 aaccoder.c --- a/aaccoder.c Sat Jul 24 02:57:08 2010 +0000 +++ b/aaccoder.c Sat Jul 24 04:23:26 2010 +0000 @@ -795,10 +795,8 @@ sce->sf_idx[i] -= qstep; } qstep >>= 1; - if (!qstep && tbits > destbits*1.02) + if (!qstep && tbits > destbits*1.02 && sce->sf_idx[0] < 217) qstep = 1; - if (sce->sf_idx[0] >= 217) - break; } while (qstep); fflag = 0;