Mercurial > libavcodec.hg
comparison ac3.c @ 10287:ef570db9b23e libavcodec
Remove some unneeded variables.
author | jbr |
---|---|
date | Sun, 27 Sep 2009 05:39:57 +0000 |
parents | 2bb4b0cda61e |
children | 518b07f1d61a |
comparison
equal
deleted
inserted
replaced
10286:2bb4b0cda61e | 10287:ef570db9b23e |
---|---|
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, j, k, l, v; | 271 int i, k, l; |
272 /* compute bndtab and masktab from bandsz */ | 272 /* compute bndtab and masktab from bandsz */ |
273 k = 0; | 273 k = 0; |
274 l = 0; | 274 l = 0; |
275 for (i = 0; i < 50; i++) { | 275 for (i = 0; i < 50; i++) { |
276 band_start_tab[i] = l; | 276 band_start_tab[i] = k; |
277 v = ff_ac3_critical_band_size_tab[i]; | 277 l = k + ff_ac3_critical_band_size_tab[i]; |
278 for (j = 0; j < v; j++) | 278 while (k < l) |
279 bin_to_band_tab[k++] = i; | 279 bin_to_band_tab[k++] = i; |
280 l += v; | 280 } |
281 } | 281 band_start_tab[50] = k; |
282 band_start_tab[50] = l; | |
283 #endif /* !CONFIG_HARDCODED_TABLES */ | 282 #endif /* !CONFIG_HARDCODED_TABLES */ |
284 } | 283 } |