[FFmpeg-soc] [soc]: r4447 - aacenc/aaccoder.c
alexc
subversion at mplayerhq.hu
Sun Jun 14 22:48:53 CEST 2009
Author: alexc
Date: Sun Jun 14 22:48:53 2009
New Revision: 4447
Log:
Prevent the minimum scale factor from being larger than the maximum legal
bitstream value.
Modified:
aacenc/aaccoder.c
Modified: aacenc/aaccoder.c
==============================================================================
--- aacenc/aaccoder.c Sun Jun 14 18:39:19 2009 (r4446)
+++ aacenc/aaccoder.c Sun Jun 14 22:48:53 2009 (r4447)
@@ -1016,6 +1016,7 @@ static void search_for_quantizers_faac(A
minq = FFMIN(minq, sce->sf_idx[i]);
}
if(minq == INT_MAX) minq = 0;
+ minq = FFMIN(minq, SCALE_MAX_POS);
maxsf = FFMIN(minq + SCALE_MAX_DIFF, SCALE_MAX_POS);
for(i = 126; i >= 0; i--){
if(!sce->sf_idx[i])
More information about the FFmpeg-soc
mailing list