Mercurial > libavcodec.hg
comparison ac3.c @ 10288:518b07f1d61a libavcodec
Cosmetics: Rename some variables to be more descriptive of their use.
author | jbr |
---|---|
date | Sun, 27 Sep 2009 05:48:03 +0000 |
parents | ef570db9b23e |
children | fbb6d09eb237 |
comparison
equal
deleted
inserted
replaced
10287:ef570db9b23e | 10288:518b07f1d61a |
---|---|
266 * AVParser init code. | 266 * AVParser init code. |
267 */ | 267 */ |
268 av_cold void ac3_common_init(void) | 268 av_cold void ac3_common_init(void) |
269 { | 269 { |
270 #if !CONFIG_HARDCODED_TABLES | 270 #if !CONFIG_HARDCODED_TABLES |
271 int i, k, l; | |
272 /* compute bndtab and masktab from bandsz */ | 271 /* compute bndtab and masktab from bandsz */ |
273 k = 0; | 272 int bin = 0, band; |
274 l = 0; | 273 for (band = 0; band < 50; band++) { |
275 for (i = 0; i < 50; i++) { | 274 int band_end = bin + ff_ac3_critical_band_size_tab[band]; |
276 band_start_tab[i] = k; | 275 band_start_tab[band] = bin; |
277 l = k + ff_ac3_critical_band_size_tab[i]; | 276 while (bin < band_end) |
278 while (k < l) | 277 bin_to_band_tab[bin++] = band; |
279 bin_to_band_tab[k++] = i; | 278 } |
280 } | 279 band_start_tab[50] = bin; |
281 band_start_tab[50] = k; | |
282 #endif /* !CONFIG_HARDCODED_TABLES */ | 280 #endif /* !CONFIG_HARDCODED_TABLES */ |
283 } | 281 } |