comparison aacenc.c @ 9971:4b6f16da6652 libavcodec

Be sure to increment our position in the coefficient array when skipping a zero band in the twoloop scalefactor search.
author alexc
date Wed, 22 Jul 2009 03:53:30 +0000
parents c5ca5e520fe1
children dea232ef4287
comparison
equal deleted inserted replaced
9970:f7ab24dcb707 9971:4b6f16da6652
191 sizes[1] = swb_size_128[i]; 191 sizes[1] = swb_size_128[i];
192 lengths[0] = ff_aac_num_swb_1024[i]; 192 lengths[0] = ff_aac_num_swb_1024[i];
193 lengths[1] = ff_aac_num_swb_128[i]; 193 lengths[1] = ff_aac_num_swb_128[i];
194 ff_psy_init(&s->psy, avctx, 2, sizes, lengths); 194 ff_psy_init(&s->psy, avctx, 2, sizes, lengths);
195 s->psypp = ff_psy_preprocess_init(avctx); 195 s->psypp = ff_psy_preprocess_init(avctx);
196 s->coder = &ff_aac_coders[0]; 196 s->coder = &ff_aac_coders[2];
197 197
198 s->lambda = avctx->global_quality ? avctx->global_quality : 120; 198 s->lambda = avctx->global_quality ? avctx->global_quality : 120;
199 #if !CONFIG_HARDCODED_TABLES 199 #if !CONFIG_HARDCODED_TABLES
200 for (i = 0; i < 428; i++) 200 for (i = 0; i < 428; i++)
201 ff_aac_pow2sf_tab[i] = pow(2, (i - 200)/4.); 201 ff_aac_pow2sf_tab[i] = pow(2, (i - 200)/4.);