From 4b26968bce2891d87155ed269d2b3112bb54089e Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Fri, 3 Apr 2026 18:33:45 +1100 Subject: fix(bmp): Unvoid buffer and bmp_ctx in the header handler --- src/format/image/bmp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/format/image') 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; -- cgit v1.2.3