diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-04-25 05:01:41 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-07-13 16:54:30 +0800 |
commit | ef05820d514fd6a27d1b7690df16b63f8b20cf26 (patch) | |
tree | 2dbb261b8d92e9fa8cd2d57556143433ef49b69d /jbig2dec/jbig2_arith.c | |
parent | 359a15e1c8b460268ff80fb8e8a5da121fcbafc3 (diff) | |
download | ghostpdl-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.c | 2 |
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; } } |