Add patch to deal with null pointer in ImageDesc.cpp
This commit is contained in:
parent
120ae78e7f
commit
74873217aa
@ -20,6 +20,8 @@ Patch0: OpenColorIO-setuptools.patch
|
||||
# https://github.com/imageworks/OpenColorIO/issues/517
|
||||
Patch1: ocio-1.1.0-yamlcpp060.patch
|
||||
Patch2: ocio-glext_h.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1923344
|
||||
Patch3: ocio-null_pointer.patch
|
||||
|
||||
# Utilities
|
||||
BuildRequires: cmake gcc-c++
|
||||
@ -73,8 +75,6 @@ BuildRequires: tex(cm-super-ts1.enc)
|
||||
# Fonts
|
||||
BuildRequires: texlive-cm texlive-ec texlive-times texlive-helvetic
|
||||
BuildRequires: texlive-courier
|
||||
# Font maps
|
||||
BuildRequires: texlive-updmap-map
|
||||
# Babel
|
||||
BuildRequires: texlive-babel-english
|
||||
# Styles
|
||||
|
15
ocio-null_pointer.patch
Normal file
15
ocio-null_pointer.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Index: OpenColorIO-1.1.1/src/core/ImageDesc.cpp
|
||||
===================================================================
|
||||
--- OpenColorIO-1.1.1.orig/src/core/ImageDesc.cpp
|
||||
+++ OpenColorIO-1.1.1/src/core/ImageDesc.cpp
|
||||
@@ -57,8 +57,8 @@ OCIO_NAMESPACE_ENTER
|
||||
os << "gData=" << planarImg->getGData() << ", ";
|
||||
os << "bData=" << planarImg->getBData() << ", ";
|
||||
os << "aData=" << planarImg->getAData() << ", ";
|
||||
- os << "width=" << packedImg->getWidth() << ", ";
|
||||
- os << "height=" << packedImg->getHeight() << ", ";
|
||||
+ os << "width=" << planarImg->getWidth() << ", ";
|
||||
+ os << "height=" << planarImg->getHeight() << ", ";
|
||||
os << "yStrideBytes=" << planarImg->getYStrideBytes() << "";
|
||||
os << ">";
|
||||
}
|
Loading…
Reference in New Issue
Block a user