[FFmpeg-soc] [soc]: r2433 - aacenc/aacenc.c

kostya subversion at mplayerhq.hu
Sat Jun 14 12:34:14 CEST 2008


Author: kostya
Date: Sat Jun 14 12:34:13 2008
New Revision: 2433

Log:
100l  I should have tested all codebooks encoding

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Sat Jun 14 12:34:13 2008
@@ -336,7 +336,7 @@ static void encode_codebook(AACEncContex
         for(i = start; i < start + size; i += dim){
             idx = 0;
             for(j = 0; j < dim; j++)
-                idx = idx * aac_cb_info[cb].maxval + FFABS(cpe->ch[channel].icoefs[i+j]);
+                idx = idx * (aac_cb_info[cb].maxval + 1) + FFABS(cpe->ch[channel].icoefs[i+j]);
             put_bits(&s->pb, bits[idx], codes[idx]);
             //output signs
             for(j = 0; j < dim; j++)



More information about the FFmpeg-soc mailing list