Skip to content

Commit

Permalink
Merge pull request #259 from johnhaddon/exrPatches
Browse files Browse the repository at this point in the history
OpenEXR : Add DWA patches
  • Loading branch information
ericmehl authored Mar 21, 2024
2 parents 992b421 + 55a63ed commit 6d74c8b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Changes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
8.0.0 alpha x (relative to 8.0.0 alpha 8)
-------------


- OpenEXR : Applied patches from the following pull requests :
- https://github.com/AcademySoftwareFoundation/openexr/pull/1591
- https://github.com/AcademySoftwareFoundation/openexr/pull/1684

8.0.0 alpha 8 (relative to 8.0.0 alpha 7)
-------------
Expand Down
12 changes: 12 additions & 0 deletions OpenEXR/patches/pull-1591.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/lib/OpenEXRCore/internal_dwa_compressor.h b/src/lib/OpenEXRCore/internal_dwa_compressor.h
index 03ad60669..219cc3f3e 100644
--- a/src/lib/OpenEXRCore/internal_dwa_compressor.h
+++ b/src/lib/OpenEXRCore/internal_dwa_compressor.h
@@ -1047,6 +1047,7 @@ DwaCompressor_uncompress (
me->alloc_fn, me->free_fn, &(cd->_dctData), outBufferEnd);
if (rv != EXR_ERR_SUCCESS) return rv;

+ cd->_dctData._type = chan->data_type;
outBufferEnd += chan->width * chan->bytes_per_element;
}
}
13 changes: 13 additions & 0 deletions OpenEXR/patches/pull-1684.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/lib/OpenEXRCore/internal_dwa_compressor.h b/src/lib/OpenEXRCore/internal_dwa_compressor.h
index 705a036c5..f96d22b37 100644
--- a/src/lib/OpenEXRCore/internal_dwa_compressor.h
+++ b/src/lib/OpenEXRCore/internal_dwa_compressor.h
@@ -1600,7 +1600,7 @@ DwaCompressor_classifyChannels (DwaCompressor* me)
prefixMap,
me->_numChannels,
curc->channel_name,
- (size_t) (curc->channel_name - suffix));
+ (size_t) (suffix - curc->channel_name));

for (size_t i = 0; i < me->_channelRuleCount; ++i)
{

0 comments on commit 6d74c8b

Please sign in to comment.