diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 05:39:57 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 05:39:57 +0000 |
commit | 8a547c25a08fff294846ce718ec5ed3ddeb1a5ae (patch) | |
tree | 189ab90006ccd60a1409491c66474111bceeebc9 /libavcodec | |
parent | 403b1543b5d9f81d5f2647cf560e30a07f87d7d4 (diff) | |
download | ffmpeg-8a547c25a08fff294846ce718ec5ed3ddeb1a5ae.tar.gz |
Remove some unneeded variables.
Originally committed as revision 20045 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ac3.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index ea2d8e49e0..d009920e62 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -268,17 +268,16 @@ void ac3_parametric_bit_allocation(AC3BitAllocParameters *s, uint8_t *bap, av_cold void ac3_common_init(void) { #if !CONFIG_HARDCODED_TABLES - int i, j, k, l, v; + int i, k, l; /* compute bndtab and masktab from bandsz */ k = 0; l = 0; for (i = 0; i < 50; i++) { - band_start_tab[i] = l; - v = ff_ac3_critical_band_size_tab[i]; - for (j = 0; j < v; j++) + band_start_tab[i] = k; + l = k + ff_ac3_critical_band_size_tab[i]; + while (k < l) bin_to_band_tab[k++] = i; - l += v; } - band_start_tab[50] = l; + band_start_tab[50] = k; #endif /* !CONFIG_HARDCODED_TABLES */ } |