From 68dfa9e52604b669ac9895ff5ccbecd99e3ddc47 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 17 Nov 2013 19:26:40 -0600 Subject: [PATCH] [libpng16] Reduced scope of recently-added #ifdef block (#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED/#endif in pngpread.c) --- pngpread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pngpread.c b/pngpread.c index 44a07d7bc..581fa9d5a 100644 --- a/pngpread.c +++ b/pngpread.c @@ -530,7 +530,6 @@ png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr) } #endif -#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED else { if (png_ptr->push_length + 4 > png_ptr->buffer_size) @@ -538,10 +537,11 @@ png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr) png_push_save_buffer(png_ptr); return; } +#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED png_handle_unknown(png_ptr, info_ptr, png_ptr->push_length, PNG_HANDLE_CHUNK_AS_DEFAULT); - } #endif + } png_ptr->mode &= ~PNG_HAVE_CHUNK_HEADER; }