Commit 17d77c79 authored by jbr's avatar jbr

Cosmetics: Rename some variables to be more descriptive of their use.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20046 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 336b2636
...@@ -268,16 +268,14 @@ void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap, ...@@ -268,16 +268,14 @@ void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap,
av_cold void ac3_common_init(void) av_cold void ac3_common_init(void)
{ {
#if !CONFIG_HARDCODED_TABLES #if !CONFIG_HARDCODED_TABLES
int i, k, l;
/* compute bndtab and masktab from bandsz */ /* compute bndtab and masktab from bandsz */
k = 0; int bin = 0, band;
l = 0; for (band = 0; band < 50; band++) {
for (i = 0; i < 50; i++) { int band_end = bin + ff_ac3_critical_band_size_tab[band];
band_start_tab[i] = k; band_start_tab[band] = bin;
l = k + ff_ac3_critical_band_size_tab[i]; while (bin < band_end)
while (k < l) bin_to_band_tab[bin++] = band;
bin_to_band_tab[k++] = i;
} }
band_start_tab[50] = k; band_start_tab[50] = bin;
#endif /* !CONFIG_HARDCODED_TABLES */ #endif /* !CONFIG_HARDCODED_TABLES */
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment