1
0
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:
Michael Niedermayer 2024-10-16 14:43:04 +02:00
parent 360e7cafd0
commit c314a68d04
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -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);
} }