mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-18 23:09:52 +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:
@ -475,7 +475,7 @@ static WebPEncodingError SetFrame(const WebPConfig* const config,
|
||||
// TODO(later): Perhaps a rough SSIM/PSNR produced by the encoder should
|
||||
// also be a criteria, in addition to sizes.
|
||||
if (mem1.size <= mem2.size) {
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0202
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0203
|
||||
WebPMemoryWriterClear(&mem2);
|
||||
#else
|
||||
free(mem2.mem);
|
||||
@ -483,7 +483,7 @@ static WebPEncodingError SetFrame(const WebPConfig* const config,
|
||||
#endif
|
||||
GetEncodedData(&mem1, encoded_data);
|
||||
} else {
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0202
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0203
|
||||
WebPMemoryWriterClear(&mem1);
|
||||
#else
|
||||
free(mem1.mem);
|
||||
@ -497,7 +497,7 @@ static WebPEncodingError SetFrame(const WebPConfig* const config,
|
||||
return error_code;
|
||||
|
||||
Err:
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0202
|
||||
#if WEBP_ENCODER_ABI_VERSION > 0x0203
|
||||
WebPMemoryWriterClear(&mem1);
|
||||
WebPMemoryWriterClear(&mem2);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user