| Index: third_party/libwebp/utils/bit_writer_utils.h
|
| diff --git a/third_party/libwebp/utils/bit_writer.h b/third_party/libwebp/utils/bit_writer_utils.h
|
| similarity index 97%
|
| rename from third_party/libwebp/utils/bit_writer.h
|
| rename to third_party/libwebp/utils/bit_writer_utils.h
|
| index ef360d1dc6f315fcd7692f6da391d0ed3135daec..9c02bbc06d9377e81300db25d018e3def98b0041 100644
|
| --- a/third_party/libwebp/utils/bit_writer.h
|
| +++ b/third_party/libwebp/utils/bit_writer_utils.h
|
| @@ -54,7 +54,8 @@ int VP8BitWriterAppend(VP8BitWriter* const bw,
|
|
|
| // return approximate write position (in bits)
|
| static WEBP_INLINE uint64_t VP8BitWriterPos(const VP8BitWriter* const bw) {
|
| - return (uint64_t)(bw->pos_ + bw->run_) * 8 + 8 + bw->nb_bits_;
|
| + const uint64_t nb_bits = 8 + bw->nb_bits_; // bw->nb_bits_ is <= 0, note
|
| + return (bw->pos_ + bw->run_) * 8 + nb_bits;
|
| }
|
|
|
| // Returns a pointer to the internal buffer.
|
|
|