From da680980886a919fc5ab4321e1f5ddf71ff575f0 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 10 Aug 2014 23:24:02 +0000 Subject: [PATCH] --- coders/webp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/coders/webp.c b/coders/webp.c index e503bc5a7..5f29233ce 100644 --- a/coders/webp.c +++ b/coders/webp.c @@ -469,7 +469,7 @@ ModuleExport void UnregisterWEBPImage(void) % */ -#if WEBP_ENCODER_ABI_VERSION >= 0x0100 +#if WEBP_DECODER_ABI_VERSION >= 0x0100 static int WebPEncodeProgress(int percent,const WebPPicture* picture) { #define EncodeImageTag "Encode/Image" @@ -544,7 +544,7 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info, ThrowWriterException(ResourceLimitError,"UnableToEncodeImageFile"); picture.writer=WebPEncodeWriter; picture.custom_ptr=(void *) image; -#if WEBP_ENCODER_ABI_VERSION >= 0x0100 +#if WEBP_DECODER_ABI_VERSION >= 0x0100 picture.progress_hook=WebPEncodeProgress; #endif picture.stats=(&statistics); @@ -573,7 +573,7 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info, configure.image_hint=WEBP_HINT_PHOTO; if (LocaleCompare(value,"picture") == 0) configure.image_hint=WEBP_HINT_PICTURE; -#if WEBP_ENCODER_ABI_VERSION >= 0x0200 +#if WEBP_DECODER_ABI_VERSION >= 0x0200 if (LocaleCompare(value,"graph") == 0) configure.image_hint=WEBP_HINT_GRAPH; #endif @@ -627,7 +627,7 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info, value=GetImageOption(image_info,"webp:partition-limit"); if (value != (char *) NULL) configure.partition_limit=StringToInteger(value); -#if WEBP_ENCODER_ABI_VERSION >= 0x0201 +#if WEBP_DECODER_ABI_VERSION >= 0x0201 value=GetImageOption(image_info,"webp:low-memory"); if (value != (char *) NULL) configure.low_memory=(int) ParseCommandOption(MagickBooleanOptions, @@ -733,7 +733,7 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info, message="file too big (> 4GB)"; break; } -#if WEBP_ENCODER_ABI_VERSION >= 0x0100 +#if WEBP_DECODER_ABI_VERSION >= 0x0100 case VP8_ENC_ERROR_USER_ABORT: { message="user abort"; -- 2.40.0