Skip to content

Commit 50577f0

Browse files
committed
Fix bug where decreasing line order was incorrectly applied twice.
1 parent c49b4c5 commit 50577f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tinyexr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5442,10 +5442,11 @@ static int DecodeChunk(EXRImage *exr_image, const EXRHeader *exr_header,
54425442
if (line_no < 0) {
54435443
invalid_data = true;
54445444
} else {
5445+
// Line order is increasing because we read in line offset table order.
54455446
if (!tinyexr::DecodePixelData(
54465447
exr_image->images, exr_header->requested_pixel_types,
54475448
data_ptr, static_cast<size_t>(data_len),
5448-
exr_header->compression_type, exr_header->line_order,
5449+
exr_header->compression_type, /* line_order*/ 0,
54495450
int(data_width), int(data_height), int(data_width), y, line_no,
54505451
num_lines, static_cast<size_t>(pixel_data_size),
54515452
static_cast<size_t>(

0 commit comments

Comments
 (0)