diff options
Diffstat (limited to 'src/format/image/bmp.c')
| -rw-r--r-- | src/format/image/bmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/format/image/bmp.c b/src/format/image/bmp.c index e565b16..dde7d7e 100644 --- a/src/format/image/bmp.c +++ b/src/format/image/bmp.c @@ -69,7 +69,9 @@ ff_result ff_bmp_header_handler(uint8_t *buf, size_t len, ff_bmp_ctx *ctx) { (void) ctx; if (len != FF_BMP_HEADER_SIZE) { - + ff_dprintf("bmp: bitmap header is not correct size (expected 14, got %d)\n", len); + ctx->last_error = FF_RESULT_ERROR_INVALID_BMP_HEADER; + return FF_RESULT_ERROR_INVALID_BMP_HEADER; } return FF_RESULT_WARN_NO_IMPL; |
