summaryrefslogtreecommitdiff
path: root/libavcodec/ac3.c
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 /libavcodec/ac3.c
parentbe5830ea7a258cb39fce07d4aab7543fa8024591 (diff)
simplify by combining increment with array access
Originally committed as revision 20038 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3.c')
-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 */