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:
2052042
)
Move 2 variable declarations to inside of loop.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 27 Sep 2009 04:41:05 +0000
(
04:41
+0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 27 Sep 2009 04:41:05 +0000
(
04:41
+0000)
Originally committed as revision 20039 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3.c
b/libavcodec/ac3.c
index
41bc134
..
e97c396
100644
(file)
--- a/
libavcodec/ac3.c
+++ b/
libavcodec/ac3.c
@@
-98,7
+98,7
@@
static inline int calc_lowcomp(int a, int b0, int b1, int bin)
void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
int16_t *band_psd)
{
- int bin, j, k
, end1, v
;
+ int bin, j, k;
/* exponent mapping to PSD */
for(bin=start;bin<end;bin++) {
@@
-109,8
+109,8
@@
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++];
- end1 = FFMIN(band_start_tab[k+1], end);
+
int
v = psd[j++];
+
int
end1 = FFMIN(band_start_tab[k+1], end);
for (; j < end1; j++) {
/* logadd */
int adr = FFMIN(FFABS(v - psd[j]) >> 1, 255);