summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-27 12:57:52 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-27 12:57:52 -0700
commit5c15e67e12e245d102a2e0ef1b4ade54379f252c (patch)
tree0d26b2039eae74fa403256469b3eb15b7553e081 /core/fxcodec/codec
parentaeab530b04938797a3fda138a6f25939a26e41d4 (diff)
downloadpdfium-5c15e67e12e245d102a2e0ef1b4ade54379f252c.tar.xz
Fix some FX_BOOL / int noise in core/fx*chromium/2903
Review-Url: https://codereview.chromium.org/2459673002
Diffstat (limited to 'core/fxcodec/codec')
-rw-r--r--core/fxcodec/codec/fx_codec_fax.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/fxcodec/codec/fx_codec_fax.cpp b/core/fxcodec/codec/fx_codec_fax.cpp
index a7ffd8bbdd..9af812381a 100644
--- a/core/fxcodec/codec/fx_codec_fax.cpp
+++ b/core/fxcodec/codec/fx_codec_fax.cpp
@@ -522,9 +522,7 @@ uint8_t* CCodec_FaxDecoder::v_GetNextLine() {
} else if (m_Encoding == 0) {
FaxGet1DLine(m_pSrcBuf, bitsize, &m_bitpos, &m_ScanlineBuf, m_OrigWidth);
} else {
- FX_BOOL bNext1D = m_pSrcBuf[m_bitpos / 8] & (1 << (7 - m_bitpos % 8));
- ++m_bitpos;
- if (bNext1D) {
+ if (NextBit(m_pSrcBuf, &m_bitpos)) {
FaxGet1DLine(m_pSrcBuf, bitsize, &m_bitpos, &m_ScanlineBuf, m_OrigWidth);
} else {
FaxG4GetRow(m_pSrcBuf, bitsize, &m_bitpos, m_ScanlineBuf.data(), m_RefBuf,