From 40dbca72e7cfbb01e716d747262c4f28b6cdc638 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sat, 31 Jan 2026 12:57:34 +1100 Subject: fix(png): Remove the address operator from the memory copy of the previous row --- src/format/image/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format/image/png.c b/src/format/image/png.c index 2b63ad2..1d4109d 100644 --- a/src/format/image/png.c +++ b/src/format/image/png.c @@ -250,7 +250,7 @@ ff_result ff_png_data_handler(uint8_t *buf, size_t len, ff_png_ctx *ctx) memcpy(&ctx->data.pixels[iline * ctx->width * bpp], reconstructed_buf, ctx->width * bpp); // Copy current reconstructed to previous_row for next iteration (you thought i was going to yap more about png huh, you fool, you are so predictable) - memcpy(&previous_row, reconstructed_buf, ctx->width * bpp); + memcpy(previous_row, reconstructed_buf, ctx->width * bpp); } else { // Hissy fit time @@ -274,7 +274,7 @@ ff_result ff_png_data_handler(uint8_t *buf, size_t len, ff_png_ctx *ctx) memcpy(&ctx->data.imap[iline * ctx->width], reconstructed_buf, ctx->width); // Copy current reconstructed to previous_row for next iteration - memcpy(&previous_row, reconstructed_buf, ctx->width); + memcpy(previous_row, reconstructed_buf, ctx->width); } } -- cgit v1.2.3