Index: core/src/fxcodec/jbig2/JBig2_Context.cpp |
diff --git a/core/src/fxcodec/jbig2/JBig2_Context.cpp b/core/src/fxcodec/jbig2/JBig2_Context.cpp |
index 06863b0bc49a2d69c26855a4ad4654c992054b59..8473cf1555a119dee699a2fbc230d0212608e733 100644 |
--- a/core/src/fxcodec/jbig2/JBig2_Context.cpp |
+++ b/core/src/fxcodec/jbig2/JBig2_Context.cpp |
@@ -381,7 +381,7 @@ int32_t CJBig2_Context::ProcessingParseSegmentData(CJBig2_Segment* pSegment, |
m_pStream->readShortInteger(&wTemp) != 0) { |
return JBIG2_ERROR_TOO_SHORT; |
} |
- pPageInfo->m_bIsStriped = ((wTemp >> 15) & 1) ? TRUE : FALSE; |
+ pPageInfo->m_bIsStriped = (wTemp >> 15) & 1; |
Tom Sepez
2015/10/15 17:08:31
nit: prefer !!(wTemp & 0xSomething)
Lei Zhang
2015/10/19 08:56:18
Done.
|
pPageInfo->m_wMaxStripeSize = wTemp & 0x7fff; |
bool bMaxHeight = (pPageInfo->m_dwHeight == 0xffffffff); |
if (bMaxHeight && pPageInfo->m_bIsStriped != TRUE) |