summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-01-31 12:57:34 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-01-31 12:58:09 +1100
commit40dbca72e7cfbb01e716d747262c4f28b6cdc638 (patch)
tree392442c42b092b362904d7babde0ac8212c94660 /src/format
parent16ad4f9ea8c2d40a2922d346b851784f10b2d269 (diff)
fix(png): Remove the address operator from the memory copy of the previous row
Diffstat (limited to 'src/format')
-rw-r--r--src/format/image/png.c4
1 files 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);
}
}