projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f888263
)
0 => nullptr fix.
author
Carl Hetherington
<cth@carlh.net>
Tue, 26 Jan 2021 23:38:32 +0000
(
00:38
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 26 Jan 2021 23:38:32 +0000
(
00:38
+0100)
src/openjpeg_image.cc
patch
|
blob
|
history
diff --git
a/src/openjpeg_image.cc
b/src/openjpeg_image.cc
index d17943affe93e010f07f14bfc65d0e557563bea4..6cfd312b1e25406719194a2205d8b45aba642d3b 100644
(file)
--- a/
src/openjpeg_image.cc
+++ b/
src/openjpeg_image.cc
@@
-130,7
+130,7
@@
OpenJPEGImage::create (Size size)
/* XXX: is this _SRGB right? */
_opj_image = opj_image_create (3, &cmptparm[0], OPJ_CLRSPC_SRGB);
- if (_opj_image ==
0
) {
+ if (_opj_image ==
nullptr
) {
throw std::runtime_error ("could not create libopenjpeg image");
}