From b9914c9dc49b9b12b6eaef703e94a50a4c7a6c14 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshev Date: Thu, 9 Nov 2023 17:00:03 +0300 Subject: [PATCH] BMP: Fix compilation issue --- src/sail-codecs/common/bmp/bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sail-codecs/common/bmp/bmp.c b/src/sail-codecs/common/bmp/bmp.c index 420c14bc..67ed1ed4 100644 --- a/src/sail-codecs/common/bmp/bmp.c +++ b/src/sail-codecs/common/bmp/bmp.c @@ -394,7 +394,7 @@ sail_status_t bmp_private_read_frame(void *state, struct sail_io *io, struct sai bool skip_pad_bytes = true; for (unsigned i = image->height; i > 0; i--) { - unsigned char *scan = sail_scan_line(image->pixels, bmp_state->flipped ? (i - 1) : (image->height - i)); + unsigned char *scan = sail_scan_line(image, bmp_state->flipped ? (i - 1) : (image->height - i)); for (unsigned pixel_index = 0; pixel_index < image->width;) { if (bmp_state->version >= SAIL_BMP_V3 && bmp_state->v3.compression == SAIL_BI_RLE4) {