From 1c92bd37f3287d857cb39a4b04d2d88773c4c391 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 12 Apr 2012 13:43:37 -0700 Subject: [PATCH] vp8io: use size_t for buffer size changes the decoder ABI Change-Id: I86fe384739b985bf63bcd9badbbbf4411e1eecae --- src/webp/decode.h | 2 +- src/webp/decode_vp8.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webp/decode.h b/src/webp/decode.h index ac89cdc4..002a9651 100644 --- a/src/webp/decode.h +++ b/src/webp/decode.h @@ -18,7 +18,7 @@ extern "C" { #endif -#define WEBP_DECODER_ABI_VERSION 0x0002 +#define WEBP_DECODER_ABI_VERSION 0x0003 // Return the decoder's version number, packed in hexadecimal using 8bits for // each of major/minor/revision. E.g: v2.5.7 is 0x020507. diff --git a/src/webp/decode_vp8.h b/src/webp/decode_vp8.h index eecc3865..6d391edc 100644 --- a/src/webp/decode_vp8.h +++ b/src/webp/decode_vp8.h @@ -12,6 +12,8 @@ #ifndef WEBP_WEBP_DECODE_VP8_H_ #define WEBP_WEBP_DECODE_VP8_H_ +#include // for size_t + #include "./decode.h" #if defined(__cplusplus) || defined(c_plusplus) @@ -82,7 +84,7 @@ struct VP8Io { int fancy_upsampling; // Input buffer. - uint32_t data_size; + size_t data_size; const uint8_t* data; // If true, in-loop filtering will not be performed even if present in the