summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tinyff/result.h1
-rw-r--r--src/format/image/bmp.c2
2 files changed, 2 insertions, 1 deletions
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");