mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
Convert a for() loop into a while() loop for the downward part of the exponent
delta limiting. Originally committed as revision 26035 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
27af78cf0e
commit
cdedf7e625
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user