mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 04:47:37 +08:00
Move 2 variable declarations to inside of loop.
Originally committed as revision 20039 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -98,7 +98,7 @@ static inline int calc_lowcomp(int a, int b0, int b1, int bin)
|
|||||||
void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
|
void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
|
||||||
int16_t *band_psd)
|
int16_t *band_psd)
|
||||||
{
|
{
|
||||||
int bin, j, k, end1, v;
|
int bin, j, k;
|
||||||
|
|
||||||
/* exponent mapping to PSD */
|
/* exponent mapping to PSD */
|
||||||
for(bin=start;bin<end;bin++) {
|
for(bin=start;bin<end;bin++) {
|
||||||
@ -109,8 +109,8 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
|
|||||||
j=start;
|
j=start;
|
||||||
k=bin_to_band_tab[start];
|
k=bin_to_band_tab[start];
|
||||||
do {
|
do {
|
||||||
v = psd[j++];
|
int v = psd[j++];
|
||||||
end1 = FFMIN(band_start_tab[k+1], end);
|
int end1 = FFMIN(band_start_tab[k+1], end);
|
||||||
for (; j < end1; j++) {
|
for (; j < end1; j++) {
|
||||||
/* logadd */
|
/* logadd */
|
||||||
int adr = FFMIN(FFABS(v - psd[j]) >> 1, 255);
|
int adr = FFMIN(FFABS(v - psd[j]) >> 1, 255);
|
||||||
|
Reference in New Issue
Block a user