comparison aac.c @ 8042:e70975d5ff80 libavcodec

uses FF_ARRAY_ELEMS() where appropriate
author aurel
date Tue, 21 Oct 2008 21:40:24 +0000
parents c7c1e85d14bc
children 7baa25290231
comparison
equal deleted inserted replaced
8041:24761747ac3d 8042:e70975d5ff80
401 #ifndef CONFIG_HARDCODED_TABLES 401 #ifndef CONFIG_HARDCODED_TABLES
402 for (i = 0; i < 316; i++) 402 for (i = 0; i < 316; i++)
403 ff_aac_pow2sf_tab[i] = pow(2, (i - 200)/4.); 403 ff_aac_pow2sf_tab[i] = pow(2, (i - 200)/4.);
404 #endif /* CONFIG_HARDCODED_TABLES */ 404 #endif /* CONFIG_HARDCODED_TABLES */
405 405
406 INIT_VLC_STATIC(&vlc_scalefactors, 7, sizeof(ff_aac_scalefactor_code)/sizeof(ff_aac_scalefactor_code[0]), 406 INIT_VLC_STATIC(&vlc_scalefactors,7,FF_ARRAY_ELEMS(ff_aac_scalefactor_code),
407 ff_aac_scalefactor_bits, sizeof(ff_aac_scalefactor_bits[0]), sizeof(ff_aac_scalefactor_bits[0]), 407 ff_aac_scalefactor_bits, sizeof(ff_aac_scalefactor_bits[0]), sizeof(ff_aac_scalefactor_bits[0]),
408 ff_aac_scalefactor_code, sizeof(ff_aac_scalefactor_code[0]), sizeof(ff_aac_scalefactor_code[0]), 408 ff_aac_scalefactor_code, sizeof(ff_aac_scalefactor_code[0]), sizeof(ff_aac_scalefactor_code[0]),
409 352); 409 352);
410 410
411 ff_mdct_init(&ac->mdct, 11, 1); 411 ff_mdct_init(&ac->mdct, 11, 1);