projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d65d00
)
{highgui} Fix copy-paste error in conditional
author
Andy Maloney
<andy@forident.com>
Sat, 26 Jan 2013 21:38:01 +0000
(16:38 -0500)
committer
Andy Maloney
<andy@forident.com>
Sat, 26 Jan 2013 21:38:01 +0000
(16:38 -0500)
modules/highgui/src/grfmt_jpeg2000.cpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/grfmt_jpeg2000.cpp
b/modules/highgui/src/grfmt_jpeg2000.cpp
index
f190835
..
d9080e5
100644
(file)
--- a/
modules/highgui/src/grfmt_jpeg2000.cpp
+++ b/
modules/highgui/src/grfmt_jpeg2000.cpp
@@
-212,7
+212,7
@@
bool Jpeg2KDecoder::readData( Mat& img )
cmptlut[0] = jas_image_getcmptbytype( image, JAS_IMAGE_CT_RGB_B );
cmptlut[1] = jas_image_getcmptbytype( image, JAS_IMAGE_CT_RGB_G );
cmptlut[2] = jas_image_getcmptbytype( image, JAS_IMAGE_CT_RGB_R );
- if( cmptlut[0] < 0 || cmptlut[1] < 0 || cmptlut[
0
] < 0 )
+ if( cmptlut[0] < 0 || cmptlut[1] < 0 || cmptlut[
2
] < 0 )
result = false;
ncmpts = 3;
}