diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 04:47:38 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 04:47:38 +0000 |
commit | bf8643838b1458e15d90d85655cdddabfb2b763a (patch) | |
tree | a59fa7dd2997835a029e601e49b55344da2cf6be /libavcodec/ac3.c | |
parent | 89e6317b5b680263b260cee7ea284c930f57ef60 (diff) | |
download | ffmpeg-bf8643838b1458e15d90d85655cdddabfb2b763a.tar.gz |
Simplify by combining increment with array access.
Originally committed as revision 20041 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3.c')
-rw-r--r-- | libavcodec/ac3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index 124859d9be..d7c96f26fd 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -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); 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]); } |