mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avcodec/rangecoder: Do not loop renormalization
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
360e7cafd0
commit
c314a68d04
@ -106,7 +106,7 @@ static inline void put_rac(RangeCoder *c, uint8_t *const state, int bit)
|
|||||||
*state = c->one_state[*state];
|
*state = c->one_state[*state];
|
||||||
}
|
}
|
||||||
|
|
||||||
while (c->range < 0x100)
|
if (c->range < 0x100)
|
||||||
renorm_encoder(c);
|
renorm_encoder(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user