changeset 10283:a4b3121d4299 libavcodec

Simplify by combining increment with array access.
author jbr
date Sun, 27 Sep 2009 04:47:38 +0000
parents 934cd92921df
children 38e05838efc0
files ac3.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Sun Sep 27 04:46:56 2009 +0000
+++ b/ac3.c	Sun Sep 27 04:47:38 2009 +0000
@@ -116,8 +116,7 @@
             int adr = FFMIN(FFABS(v - psd[bin]) >> 1, 255);
             v = FFMAX(v, psd[bin]) + ff_ac3_log_add_tab[adr];
         }
-        band_psd[band] = v;
-        band++;
+        band_psd[band++] = v;
     } while (end > band_start_tab[band]);
 }