Commit 7309871b authored by jbr's avatar jbr

Remove unneeded variable.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20047 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 17d77c79
...@@ -216,7 +216,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, ...@@ -216,7 +216,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
int snr_offset, int floor, int snr_offset, int floor,
const uint8_t *bap_tab, uint8_t *bap) const uint8_t *bap_tab, uint8_t *bap)
{ {
int i, j, k, end1, v, address; int i, j, end1, v, address;
/* special case, if snr offset is -960, set all bap's to zero */ /* special case, if snr offset is -960, set all bap's to zero */
if (snr_offset == -960) { if (snr_offset == -960) {
...@@ -229,10 +229,9 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, ...@@ -229,10 +229,9 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
do { do {
v = (FFMAX(mask[j] - snr_offset - floor, 0) & 0x1FE0) + floor; v = (FFMAX(mask[j] - snr_offset - floor, 0) & 0x1FE0) + floor;
end1 = FFMIN(band_start_tab[j] + ff_ac3_critical_band_size_tab[j], end); end1 = FFMIN(band_start_tab[j] + ff_ac3_critical_band_size_tab[j], end);
for (k = i; k < end1; k++) { for (; i < end1; i++) {
address = av_clip((psd[i] - v) >> 5, 0, 63); address = av_clip((psd[i] - v) >> 5, 0, 63);
bap[i] = bap_tab[address]; bap[i] = bap_tab[address];
i++;
} }
} while (end > band_start_tab[j++]); } while (end > band_start_tab[j++]);
} }
......
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