AOMediaCodec / libavif

libavif - Library for encoding and decoding .avif files
Other
1.58k stars 206 forks source link

Test bitCount == 0 in avifROStreamSkipBits() #2499

Closed wantehchang closed 2 weeks ago

wantehchang commented 2 weeks ago

Testing bitCount == 0 is easier to understand and avoids unnecessary work if stream->numUsedBitsInPartialByte == 0 and bitCount == 0.

Suggested by Yannis Guyon.

Bug: b:376733153