summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-03 18:33:45 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-03 18:33:45 +1100
commit4b26968bce2891d87155ed269d2b3112bb54089e (patch)
tree5180324ce52b68f5aacf9efa4b03ff1986be32ba
parentbd41a3392fec2f3cf7a23707a4604c78fcc1fac8 (diff)
fix(bmp): Unvoid buffer and bmp_ctx in the header handler
-rw-r--r--src/format/image/bmp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/format/image/bmp.c b/src/format/image/bmp.c
index ca6268e..12aabbd 100644
--- a/src/format/image/bmp.c
+++ b/src/format/image/bmp.c
@@ -64,10 +64,8 @@ ff_result ff_open_bmp(ff_ctx* ctx, ff_stream *stream, ff_bmp_ctx **out_ctx, ff_f
return FF_RESULT_WARN_NO_IMPL;
}
-ff_result ff_bmp_header_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_bmp_ctx *bmp_ctx) {
- (void) buf;
- (void) bmp_ctx;
-
+ff_result ff_bmp_header_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_bmp_ctx *bmp_ctx)
+{
if (len != FF_BMP_HEADER_SIZE) {
ff_dprintf(ctx, "bmp: bitmap header is not correct size (expected 14, got [n length])\n"); // TODO: formatting
bmp_ctx->last_error = FF_RESULT_ERROR_INVALID_BMP_HEADER;