mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 11:30:08 +01:00
avcodec/rangecoder: Do not loop renormalization
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user