OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27af78c
)
Convert a for() loop into a while() loop for the downward part of the exponent
author
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 16 Dec 2010 21:09:08 +0000
(21:09 +0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 16 Dec 2010 21:09:08 +0000
(21:09 +0000)
delta limiting.
Originally committed as revision 26035 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3enc.c
b/libavcodec/ac3enc.c
index
7d3666a
..
212a221
100644
(file)
--- a/
libavcodec/ac3enc.c
+++ b/
libavcodec/ac3enc.c
@@
-639,7
+639,8
@@
static void encode_exponents_blk_ch(uint8_t *exp,
differentially encoded */
for (i = 1; i <= nb_groups; i++)
exp[i] = FFMIN(exp[i], exp[i-1] + 2);
- for (i = nb_groups-1; i >= 0; i--)
+ i--;
+ while (--i >= 0)
exp[i] = FFMIN(exp[i], exp[i+1] + 2);
/* now we have the exponent values the decoder will see */