MagickBooleanType
status;
- image=(Image *) picture->custom_ptr;
+ image=(Image *) picture->user_data;
status=SetImageProgress(image,EncodeImageTag,percent-1,100);
return(status == MagickFalse ? 0 : 1);
}
#if !defined(MAGICKCORE_WEBPMUX_DELEGATE)
picture.writer=WebPEncodeWriter;
picture.custom_ptr=(void *) image;
-#if WEBP_DECODER_ABI_VERSION >= 0x0100
- picture.progress_hook=WebPEncodeProgress;
-#endif
#else
WebPMemoryWriterInit(&writer_info);
picture.writer=WebPMemoryWrite;
picture.custom_ptr=(&writer_info);
+#endif
+#if WEBP_DECODER_ABI_VERSION >= 0x0100
+ picture.progress_hook=WebPEncodeProgress;
+ picture.user_data=(void *) image;
#endif
picture.stats=(&statistics);
picture.width=(int) image->columns;