diff --git a/libretro-common/formats/png/rpng.c b/libretro-common/formats/png/rpng.c index f60036977d..1c2b2de1d9 100644 --- a/libretro-common/formats/png/rpng.c +++ b/libretro-common/formats/png/rpng.c @@ -473,7 +473,7 @@ static void png_reverse_filter_adam7_deinterlace_pass(uint32_t *data, const uint32_t *input, unsigned pass_width, unsigned pass_height, const struct adam7_pass *pass) { - unsigned y; + unsigned x, y; data += pass->y * ihdr->width + pass->x;