mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-30 18:05:36 +01:00 
			
		
		
		
	vp8io: use size_t for buffer size
changes the decoder ABI Change-Id: I86fe384739b985bf63bcd9badbbbf4411e1eecae
This commit is contained in:
		| @@ -18,7 +18,7 @@ | |||||||
| extern "C" { | extern "C" { | ||||||
| #endif | #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 | // Return the decoder's version number, packed in hexadecimal using 8bits for | ||||||
| // each of major/minor/revision. E.g: v2.5.7 is 0x020507. | // each of major/minor/revision. E.g: v2.5.7 is 0x020507. | ||||||
|   | |||||||
| @@ -12,6 +12,8 @@ | |||||||
| #ifndef WEBP_WEBP_DECODE_VP8_H_ | #ifndef WEBP_WEBP_DECODE_VP8_H_ | ||||||
| #define WEBP_WEBP_DECODE_VP8_H_ | #define WEBP_WEBP_DECODE_VP8_H_ | ||||||
|  |  | ||||||
|  | #include <stddef.h>  // for size_t | ||||||
|  |  | ||||||
| #include "./decode.h" | #include "./decode.h" | ||||||
|  |  | ||||||
| #if defined(__cplusplus) || defined(c_plusplus) | #if defined(__cplusplus) || defined(c_plusplus) | ||||||
| @@ -82,7 +84,7 @@ struct VP8Io { | |||||||
|   int fancy_upsampling; |   int fancy_upsampling; | ||||||
|  |  | ||||||
|   // Input buffer. |   // Input buffer. | ||||||
|   uint32_t data_size; |   size_t data_size; | ||||||
|   const uint8_t* data; |   const uint8_t* data; | ||||||
|  |  | ||||||
|   // If true, in-loop filtering will not be performed even if present in the |   // If true, in-loop filtering will not be performed even if present in the | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user