diff --git a/src/utils/bit_reader_utils.c b/src/utils/bit_reader_utils.c index b34a84aa..0720213a 100644 --- a/src/utils/bit_reader_utils.c +++ b/src/utils/bit_reader_utils.c @@ -130,7 +130,8 @@ static const uint32_t kBitMask[VP8L_MAX_NUM_BIT_READ + 1] = { 0x003fff, 0x007fff, 0x00ffff, 0x01ffff, 0x03ffff, 0x07ffff, 0x0fffff, 0x1fffff, 0x3fffff, 0x7fffff, 0xffffff}; -void VP8LInitBitReader(VP8LBitReader* const br, const uint8_t* const start, +void VP8LInitBitReader(VP8LBitReader* const br, + const uint8_t* const WEBP_COUNTED_BY(length) start, size_t length) { size_t i; vp8l_val_t value = 0; diff --git a/src/utils/bit_reader_utils.h b/src/utils/bit_reader_utils.h index f926dcf7..cd3bd7e2 100644 --- a/src/utils/bit_reader_utils.h +++ b/src/utils/bit_reader_utils.h @@ -154,7 +154,8 @@ typedef struct { int eos; // true if a bit was read past the end of buffer } VP8LBitReader; -void VP8LInitBitReader(VP8LBitReader* const br, const uint8_t* const start, +void VP8LInitBitReader(VP8LBitReader* const br, + const uint8_t* const WEBP_COUNTED_BY(length) start, size_t length); // Sets a new data buffer.