From 0fc6e368cb93c098933633d358479a0b5a255549 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sat, 28 Mar 2026 16:29:40 +1100 Subject: feat(bmp): Set ff_bmp_ctx file size to buffer location after the signiture --- src/format/image/bmp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/format') diff --git a/src/format/image/bmp.c b/src/format/image/bmp.c index dde7d7e..2df3610 100644 --- a/src/format/image/bmp.c +++ b/src/format/image/bmp.c @@ -74,5 +74,10 @@ ff_result ff_bmp_header_handler(uint8_t *buf, size_t len, ff_bmp_ctx *ctx) { return FF_RESULT_ERROR_INVALID_BMP_HEADER; } + // We've already read the signiture so we just jump straight to + // the fileSize part + + ctx->file_size = buf[4]; + return FF_RESULT_WARN_NO_IMPL; } \ No newline at end of file -- cgit v1.2.3