From c9f7efa79d070fa9c3e8b8d57ff3866e6c8616af Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Thu, 3 Oct 2013 19:30:07 -0700 Subject: [PATCH] Restore compatibilty with ANSI C again --- _webp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_webp.c b/_webp.c index 5593ad892..e55b0e59f 100644 --- a/_webp.c +++ b/_webp.c @@ -54,6 +54,8 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args) { WebPData output_data = {0}; WebPData image = { output, ret_size }; + WebPData icc_profile = { icc_bytes, icc_size }; + WebPData exif = { exif_bytes, exif_size }; WebPMuxError err; int dbg = 0; @@ -77,7 +79,6 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args) if (dbg) { fprintf (stderr, "Adding ICC Profile\n"); } - WebPData icc_profile = { icc_bytes, icc_size }; err = WebPMuxSetChunk(mux, "ICCP", &icc_profile, copy_data); if (dbg && err == WEBP_MUX_INVALID_ARGUMENT) { fprintf(stderr, "Invalid ICC Argument\n"); @@ -93,7 +94,6 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args) if (dbg){ fprintf (stderr, "Adding Exif Data\n"); } - WebPData exif = { exif_bytes, exif_size }; err = WebPMuxSetChunk(mux, "EXIF", &exif, copy_data); if (dbg && err == WEBP_MUX_INVALID_ARGUMENT) { fprintf(stderr, "Invalid Exif Argument\n");