[FFmpeg-soc] [soc]: r3708 - aacenc/aacenc.c
kostya
subversion at mplayerhq.hu
Fri Sep 5 14:13:25 CEST 2008
Author: kostya
Date: Fri Sep 5 14:13:25 2008
New Revision: 3708
Log:
10l: search in the range [idx..idx+255], not [0] and [idx+1..idx+255]
Modified:
aacenc/aacenc.c
Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c (original)
+++ aacenc/aacenc.c Fri Sep 5 14:13:25 2008
@@ -676,7 +676,7 @@ static void search_for_quantizers(AACEnc
TrellisPath paths[256*121];
int bandaddr[121];
const float lambda = 5e-7f;
- int minq = 0;
+ int minq;
float mincost;
int stack[128], sptr = 0;
@@ -752,6 +752,7 @@ static void search_for_quantizers(AACEnc
}
idx -= 256;
mincost = paths[idx].cost;
+ minq = idx;
for(i = 1; i < 256; i++){
if(paths[idx + i].cost < mincost){
mincost = paths[idx + i].cost;
More information about the FFmpeg-soc
mailing list