mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 05:19:48 +02:00
correct WebPMemoryWriterClear ABI check
this function was introduced in 0x0204; fix checks related to this to be > 0x0203 instead of 0x0202, pointed out on ffmpeg-devel. Change-Id: I52cd2b98304baf1eb9a83094e2374f2120a1546b
This commit is contained in:
@ -571,7 +571,7 @@ int WebPPictureAllocYUVA(WebPPicture* const picture, int width, int height);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if WEBP_ENCODER_ABI_VERSION <= 0x0202
|
||||
#if WEBP_ENCODER_ABI_VERSION <= 0x0203
|
||||
void WebPMemoryWriterClear(WebPMemoryWriter* writer);
|
||||
#endif
|
||||
|
||||
|
@ -231,14 +231,14 @@ struct WebPMemoryWriter {
|
||||
// The following must be called first before any use.
|
||||
WEBP_EXTERN(void) WebPMemoryWriterInit(WebPMemoryWriter* writer);
|
||||
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0202
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0203
|
||||
// The following must be called to deallocate writer->mem memory. The 'writer'
|
||||
// object itself is not deallocated.
|
||||
WEBP_EXTERN(void) WebPMemoryWriterClear(WebPMemoryWriter* writer);
|
||||
#endif
|
||||
// The custom writer to be used with WebPMemoryWriter as custom_ptr. Upon
|
||||
// completion, writer.mem and writer.size will hold the coded data.
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0202
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0203
|
||||
// writer.mem must be freed by calling WebPMemoryWriterClear.
|
||||
#else
|
||||
// writer.mem must be freed by calling 'free(writer.mem)'.
|
||||
|
Reference in New Issue
Block a user