Skip to content

Commit

Permalink
BMP: Fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Nov 9, 2023
1 parent 1dfab50 commit b9914c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sail-codecs/common/bmp/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b9914c9

Please sign in to comment.