[FFmpeg-devel] [PATCH 5/8] avcodec/rangecoder: Remove unneeded outstanding byte mask
Michael Niedermayer
michael at niedermayer.cc
Wed Oct 16 22:49:52 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 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++;
}
--
2.47.0
More information about the ffmpeg-devel
mailing list