summaryrefslogtreecommitdiff
path: root/jbig2dec/jbig2_arith.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-04-25 05:01:41 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-07-13 16:54:30 +0800
commitef05820d514fd6a27d1b7690df16b63f8b20cf26 (patch)
tree2dbb261b8d92e9fa8cd2d57556143433ef49b69d /jbig2dec/jbig2_arith.c
parent359a15e1c8b460268ff80fb8e8a5da121fcbafc3 (diff)
downloadghostpdl-ef05820d514fd6a27d1b7690df16b63f8b20cf26.tar.gz
jbig2dec: Indicate success when using arithmetic decoder.
Commit 2b2dcf4ccf401ed210f03c858b304994749fd2b3 accidentally forgot to set the out parameter to indicate success when the call was indeed successful.
Diffstat (limited to 'jbig2dec/jbig2_arith.c')
-rw-r--r--jbig2dec/jbig2_arith.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jbig2dec/jbig2_arith.c b/jbig2dec/jbig2_arith.c
index 52cc3dbbd..dec81519a 100644
--- a/jbig2dec/jbig2_arith.c
+++ b/jbig2dec/jbig2_arith.c
@@ -300,6 +300,7 @@ jbig2_arith_decode(Jbig2ArithState *as, Jbig2ArithCx *pcx, int *code)
*pcx ^= pqe->mps_xor;
}
jbig2_arith_renormd(as);
+ *code = 0;
return D;
} else
return cx >> 7;
@@ -318,6 +319,7 @@ jbig2_arith_decode(Jbig2ArithState *as, Jbig2ArithCx *pcx, int *code)
*pcx ^= pqe->lps_xor;
}
jbig2_arith_renormd(as);
+ *code = 0;
return D;
}
}