OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89e6317
)
Simplify by combining increment with array access.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 27 Sep 2009 04:47:38 +0000
(
04:47
+0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 27 Sep 2009 04:47:38 +0000
(
04:47
+0000)
Originally committed as revision 20041 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3.c
b/libavcodec/ac3.c
index
124859d
..
d7c96f2
100644
(file)
--- 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]);
}