[FFmpeg-devel] [PATCH 2/5] avcodec/rangecoder: Do not loop renormalization
Michael Niedermayer
michael at niedermayer.cc
Wed Oct 16 16:26:36 EEST 2024
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/rangecoder.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h
index 110908d6bdd..2248161bca1 100644
--- a/libavcodec/rangecoder.h
+++ b/libavcodec/rangecoder.h
@@ -106,7 +106,7 @@ static inline void put_rac(RangeCoder *c, uint8_t *const state, int bit)
*state = c->one_state[*state];
}
- while (c->range < 0x100)
+ if (c->range < 0x100)
renorm_encoder(c);
}
--
2.47.0
More information about the ffmpeg-devel
mailing list