| 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..d0f6995e3dfb2743aae7c5d0391ce4785d1beec5 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 & 0x8000);
|
| pPageInfo->m_wMaxStripeSize = wTemp & 0x7fff;
|
| bool bMaxHeight = (pPageInfo->m_dwHeight == 0xffffffff);
|
| if (bMaxHeight && pPageInfo->m_bIsStriped != TRUE)
|
|
|