From 2d23cedb87c5e8c575b05827ab1467c40c329c3f Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sun, 22 Feb 2026 12:39:07 +1100 Subject: fix(png): Add ff_result return type to ff_png_chunk_handler_ptr --- include/tinyff/image/png.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/tinyff/image/png.h b/include/tinyff/image/png.h index 3d68fec..8d1b2f0 100644 --- a/include/tinyff/image/png.h +++ b/include/tinyff/image/png.h @@ -64,9 +64,7 @@ typedef struct { static inline uint16_t ff_png_bpp(ff_png_ctx *ctx); -// Chunk handling - -typedef (*ff_png_chunk_handler_ptr)(uint8_t *buf, size_t len, ff_png_ctx* ctx); +typedef ff_result (*ff_png_chunk_handler_ptr)(uint8_t *buf, size_t len, ff_png_ctx* ctx); typedef struct { const char *type; -- cgit v1.2.3