From d6c7ba448a98ef888128fbf45124ae7106ffae3a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 13 Mar 2015 23:28:12 +0100 Subject: [PATCH] Change png_reverse_filter_regular_loop's return code --- libretro-common/formats/png/rpng_decode_common.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libretro-common/formats/png/rpng_decode_common.h b/libretro-common/formats/png/rpng_decode_common.h index 1430d0311e..2ee4261388 100644 --- a/libretro-common/formats/png/rpng_decode_common.h +++ b/libretro-common/formats/png/rpng_decode_common.h @@ -448,10 +448,7 @@ static int png_reverse_filter_regular_loop(uint32_t **data_, const struct png_ih }while(ret == PNG_PROCESS_NEXT); pngp->inflate_buf -= pngp->restore_buf_size; - - if (ret == 1) - return PNG_PROCESS_END; - return PNG_PROCESS_ERROR; + return ret; }