diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 05:48:03 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 05:48:03 +0000 |
commit | 84cb4bc6a259e3b47026d077914435fad01c141a (patch) | |
tree | 1d5769229e1bee7030f261910806c9a599ad7181 | |
parent | 8a547c25a08fff294846ce718ec5ed3ddeb1a5ae (diff) | |
download | ffmpeg-84cb4bc6a259e3b47026d077914435fad01c141a.tar.gz |
Cosmetics: Rename some variables to be more descriptive of their use.
Originally committed as revision 20046 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ac3.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index d009920e62..a40375080e 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -268,16 +268,14 @@ void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap, av_cold void ac3_common_init(void) { #if !CONFIG_HARDCODED_TABLES - int i, k, l; /* compute bndtab and masktab from bandsz */ - k = 0; - l = 0; - for (i = 0; i < 50; i++) { - band_start_tab[i] = k; - l = k + ff_ac3_critical_band_size_tab[i]; - while (k < l) - bin_to_band_tab[k++] = i; + int bin = 0, band; + for (band = 0; band < 50; band++) { + int band_end = bin + ff_ac3_critical_band_size_tab[band]; + band_start_tab[band] = bin; + while (bin < band_end) + bin_to_band_tab[bin++] = band; } - band_start_tab[50] = k; + band_start_tab[50] = bin; #endif /* !CONFIG_HARDCODED_TABLES */ } |