diff mbox series

[FFmpeg-devel,5/8] avcodec/rangecoder: Remove unneeded outstanding byte mask

Message ID 20241016194955.3627687-5-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,1/8] avcodec/rangecoder: only perform renorm check/loop for callers that need it | expand

Commit Message

Michael Niedermayer Oct. 16, 2024, 7:49 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/rangecoder.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h
index 944ad492fda..cdd99eff565 100644
--- a/libavcodec/rangecoder.h
+++ b/libavcodec/rangecoder.h
@@ -72,7 +72,7 @@  static inline void renorm_encoder(RangeCoder *c)
             *c->bytestream++ = c->outstanding_byte + 1;
             for (; c->outstanding_count; c->outstanding_count--)
                 *c->bytestream++ = 0x00;
-            c->outstanding_byte = (c->low >> 8) & 0xFF;
+            c->outstanding_byte = c->low >> 8;
         } else {
             c->outstanding_count++;
         }