Commit 128ccf5c authored by jbr's avatar jbr

Simplify by combining increment with array access.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20041 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bf5202b3
...@@ -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