diff options
author | weili <weili@chromium.org> | 2016-12-12 13:58:37 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-12 13:58:38 -0800 |
commit | 8d5d00b7270c198f9bfafcbd764ba0eff70fd5b1 (patch) | |
tree | e5597b2a73feb999e89864de5daeb225561657bc /core/fxcodec/jbig2/JBig2_TrdProc.cpp | |
parent | d340646765ffebc4e41ed3021d05b1a792888a77 (diff) | |
download | pdfium-8d5d00b7270c198f9bfafcbd764ba0eff70fd5b1.tar.xz |
Fix JBig2 decoding logic
While decoding among instances, variable "FIRSTS" should hold its
value, not be reset. This was accidently changed by earlier
refactoring.
BUG=chromium:625848,pdfium:636
Review-Url: https://codereview.chromium.org/2569023002
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_TrdProc.cpp')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_TrdProc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_TrdProc.cpp b/core/fxcodec/jbig2/JBig2_TrdProc.cpp index 1329cde5f0..1fa4373d79 100644 --- a/core/fxcodec/jbig2/JBig2_TrdProc.cpp +++ b/core/fxcodec/jbig2/JBig2_TrdProc.cpp @@ -25,6 +25,7 @@ CJBig2_Image* CJBig2_TRDProc::decode_Huffman(CJBig2_BitStream* pStream, STRIPT *= SBSTRIPS; STRIPT = -STRIPT; + int32_t FIRSTS = 0; uint32_t NINSTANCES = 0; while (NINSTANCES < SBNUMINSTANCES) { int32_t DT; @@ -34,7 +35,6 @@ CJBig2_Image* CJBig2_TRDProc::decode_Huffman(CJBig2_BitStream* pStream, DT *= SBSTRIPS; STRIPT = STRIPT + DT; bool bFirst = true; - int32_t FIRSTS = 0; int32_t CURS = 0; for (;;) { if (bFirst) { |