aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-09-27 04:37:00 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-09-27 04:37:00 +0000
commit20520421a120ee86362548e53b4225ebb69d3aee (patch)
tree31f3b4d766d170467002c8629e6529518486f44e
parentbe5830ea7a258cb39fce07d4aab7543fa8024591 (diff)
downloadffmpeg-20520421a120ee86362548e53b4225ebb69d3aee.tar.gz
simplify by combining increment with array access
Originally committed as revision 20038 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ac3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c
index 963ecb299b..41bc1345c9 100644
--- a/libavcodec/ac3.c
+++ b/libavcodec/ac3.c
@@ -109,8 +109,7 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
j=start;
k=bin_to_band_tab[start];
do {
- v=psd[j];
- j++;
+ v = psd[j++];
end1 = FFMIN(band_start_tab[k+1], end);
for (; j < end1; j++) {
/* logadd */