[FFmpeg-cvslog] r24476 - trunk/libavcodec/aaccoder.c
alexc
subversion
Sat Jul 24 06:23:27 CEST 2010
Author: alexc
Date: Sat Jul 24 06:23:26 2010
New Revision: 24476
Log:
aacenc: Prevent premature termination of the two loop search.
Modified:
trunk/libavcodec/aaccoder.c
Modified: trunk/libavcodec/aaccoder.c
==============================================================================
--- trunk/libavcodec/aaccoder.c Sat Jul 24 04:57:08 2010 (r24475)
+++ trunk/libavcodec/aaccoder.c Sat Jul 24 06:23:26 2010 (r24476)
@@ -795,10 +795,8 @@ static void search_for_quantizers_twoloo
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;
More information about the ffmpeg-cvslog
mailing list