summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorWatson Wheeler <git@tazy.dev>2026-06-28 14:35:59 +1000
committerWatson Wheeler <git@tazy.dev>2026-06-28 14:35:59 +1000
commit88dbada3c82e2ed7b3daa1ce3e992b2d30adb715 (patch)
tree898a85ecb11fe7135398c75e075a0bf3bf0ed557 /src/format
parent691e99a2f2d073140a76d7671928a7b87a122dbf (diff)
feat(png): store filter method in png_ctx
Diffstat (limited to 'src/format')
-rw-r--r--src/format/image/png.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c
index dfd3230..51cc979 100644
--- a/src/format/image/png.c
+++ b/src/format/image/png.c
@@ -210,6 +210,7 @@ ff_result ff_png_header_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_png_ct
png_ctx->height = h;
png_ctx->bit_depth = buf[8];
png_ctx->color_type = buf[9];
+ png_ctx->filter_method = buf[11];
png_ctx->interlace_method = buf[12];
ff_dprintf(ctx, "png: IHDR stored in context\n");