summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-14 10:31:17 +1000
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-14 10:31:17 +1000
commit9633099fc1ed7b2c8c4cfc3057a566665a4eaf5d (patch)
treed878dadbdbbb8c7332d5e3800e1074a16f42ae93
parent04fb8400143a37947baa0ec70b6c1768bff6944c (diff)
fix(png): Return FF_RESULT_OK since everything's fully implemented :)
-rw-r--r--src/format/image/png.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c
index d1e159d..c5dcb4d 100644
--- a/src/format/image/png.c
+++ b/src/format/image/png.c
@@ -133,7 +133,7 @@ ff_result ff_open_png(ff_ctx* ctx, ff_stream *stream, ff_png_ctx **out_ctx, ff_f
ff_dprintf(ctx, "png: calling dispatcher\n");
ff_result res = ff_png_dispatch(ctx, stream, png_ctx);
- if (res != FF_RESULT_OK) {
+ if (res != FF_RESULT_OK && res != FF_RESULT_WARN_NO_IMPL) {
ctx->allocator.ff_free(png_ctx);
return res;
}
@@ -141,8 +141,8 @@ ff_result ff_open_png(ff_ctx* ctx, ff_stream *stream, ff_png_ctx **out_ctx, ff_f
*out_ctx = png_ctx;
ff_dprintf(ctx, "png: open_png reached WIP end\n");
- png_ctx->last_error = FF_RESULT_WARN_NO_IMPL;
- return FF_RESULT_WARN_NO_IMPL;
+ png_ctx->last_error = FF_RESULT_OK;
+ return FF_RESULT_OK;
}
// Handlers
@@ -403,7 +403,7 @@ ff_result ff_png_data_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_png_ctx
ctx->allocator.ff_free(previous_row);
png_ctx->last_error = FF_RESULT_OK;
- return FF_RESULT_WARN_NO_IMPL;
+ return FF_RESULT_OK;
}
ff_result ff_png_end_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_png_ctx *png_ctx)