Commit bf864383 authored by Justin Ruggles's avatar Justin Ruggles

Simplify by combining increment with array access.

Originally committed as revision 20041 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 89e6317b
...@@ -116,8 +116,7 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd, ...@@ -116,8 +116,7 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
int adr = FFMIN(FFABS(v - psd[bin]) >> 1, 255); int adr = FFMIN(FFABS(v - psd[bin]) >> 1, 255);
v = FFMAX(v, psd[bin]) + ff_ac3_log_add_tab[adr]; v = FFMAX(v, psd[bin]) + ff_ac3_log_add_tab[adr];
} }
band_psd[band] = v; band_psd[band++] = v;
band++;
} while (end > band_start_tab[band]); } while (end > band_start_tab[band]);
} }
......
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