Mercurial > libavcodec.hg
changeset 10281:520c39d4b970 libavcodec
Move 2 variable declarations to inside of loop.
author | jbr |
---|---|
date | Sun, 27 Sep 2009 04:41:05 +0000 |
parents | 9e91066235c8 |
children | 934cd92921df |
files | ac3.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3.c Sun Sep 27 04:37:00 2009 +0000 +++ b/ac3.c Sun Sep 27 04:41:05 2009 +0000 @@ -98,7 +98,7 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd, int16_t *band_psd) { - int bin, j, k, end1, v; + int bin, j, k; /* exponent mapping to PSD */ for(bin=start;bin<end;bin++) { @@ -109,8 +109,8 @@ j=start; k=bin_to_band_tab[start]; do { - v = psd[j++]; - end1 = FFMIN(band_start_tab[k+1], end); + int v = psd[j++]; + int end1 = FFMIN(band_start_tab[k+1], end); for (; j < end1; j++) { /* logadd */ int adr = FFMIN(FFABS(v - psd[j]) >> 1, 255);