simplify by combining increment with array access
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 27 Sep 2009 04:37:00 +0000 (04:37 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sun, 27 Sep 2009 04:37:00 +0000 (04:37 +0000)
Originally committed as revision 20038 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3.c

index 963ecb2..41bc134 100644 (file)
@@ -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 */