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++; }