[FFmpeg-cvslog] avcodec/rangecoder: Remove unneeded outstanding byte mask

Michael Niedermayer git at videolan.org
Mon Dec 2 04:28:13 EET 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Oct 16 21:09:09 2024 +0200| [18922f4ae3d45ee1dd51abc2832cca1c8ad5c2f9] | committer: Michael Niedermayer

avcodec/rangecoder: Remove unneeded outstanding byte mask

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18922f4ae3d45ee1dd51abc2832cca1c8ad5c2f9
---

 libavcodec/rangecoder.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h
index 944ad492fd..cdd99eff56 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++;
         }



More information about the ffmpeg-cvslog mailing list