Skip to content

Commit

Permalink
tinyexr: Update to upstream 1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Dec 4, 2024
1 parent 0f20e67 commit d5e4d2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion thirdparty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ folder, in order.
## tinyexr

- Upstream: https://github.com/syoyo/tinyexr
- Version: 1.0.8 (6c8742cc8145c8f629698cd8248900990946d6b1, 2024)
- Version: 1.0.9 (5fcb4dcb6e3abf96214b67e5c54db1ceec6a455c, 2024)
- License: BSD-3-Clause

Files extracted from upstream source:
Expand Down
5 changes: 1 addition & 4 deletions thirdparty/tinyexr/tinyexr.h
Original file line number Diff line number Diff line change
Expand Up @@ -4923,7 +4923,7 @@ static int DecodeTiledLevel(EXRImage* exr_image, const EXRHeader* exr_header,
}
#endif
exr_image->tiles = static_cast<EXRTile*>(
calloc(sizeof(EXRTile), static_cast<size_t>(num_tiles)));
calloc(static_cast<size_t>(num_tiles), sizeof(EXRTile)));

#if TINYEXR_HAS_CXX11 && (TINYEXR_USE_THREAD > 0)
std::vector<std::thread> workers;
Expand Down Expand Up @@ -9287,9 +9287,6 @@ int SaveEXR(const float *data, int width, int height, int components,
}

int ret = SaveEXRImageToFile(&image, &header, outfilename, err);
if (ret != TINYEXR_SUCCESS) {
return ret;
}

free(header.channels);
free(header.pixel_types);
Expand Down

0 comments on commit d5e4d2f

Please sign in to comment.