From bd41a3392fec2f3cf7a23707a4604c78fcc1fac8 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Fri, 3 Apr 2026 18:33:22 +1100 Subject: feat(result): AddBMP invalid signature result --- include/tinyff/result.h | 1 + src/format/image/bmp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/tinyff/result.h b/include/tinyff/result.h index 7609f59..f15af1b 100644 --- a/include/tinyff/result.h +++ b/include/tinyff/result.h @@ -31,6 +31,7 @@ typedef enum { FF_RESULT_ERROR_INVALID_PNG_SIGNATURE, // BMP + FF_RESULT_ERROR_INVALID_BMP_SIGNATURE, FF_RESULT_ERROR_INVALID_BMP_HEADER, // Archive (more general archives terms) diff --git a/src/format/image/bmp.c b/src/format/image/bmp.c index 8c4d39b..ca6268e 100644 --- a/src/format/image/bmp.c +++ b/src/format/image/bmp.c @@ -19,7 +19,7 @@ ff_result ff_bmp_isvalid(ff_ctx* ctx, ff_stream* stream) if (memcmp(raw_sig, BMP_SIGNATURE, 2) != 0) { ff_dprintf(ctx, "bmp: signature mismatch\n"); - return FF_RESULT_ERROR_INVALID_PNG_SIGNATURE; + return FF_RESULT_ERROR_INVALID_BMP_SIGNATURE; } ff_dprintf(ctx, "bmp: signature valid\n"); -- cgit v1.2.3