diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-04-12 15:48:28 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-04-25 12:26:32 +0200 |
commit | 84cf672da90dfdaa2dfd2742cc69fa0bad268081 (patch) | |
tree | 836ce23a7f30f411e591c50e80c1189892cb65f4 /source | |
parent | e41e86bd0172036cb29d6fe1a26f88ad075d060f (diff) | |
download | mupdf-84cf672da90dfdaa2dfd2742cc69fa0bad268081.tar.xz |
Fix 698779: Wrong type for arguments when creating CCITTFax images.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-image.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c index be708e34..f1ef4f43 100644 --- a/source/pdf/pdf-image.c +++ b/source/pdf/pdf-image.c @@ -355,13 +355,13 @@ pdf_add_image(fz_context *ctx, pdf_document *doc, fz_image *image, int mask) if (cp->u.fax.k) pdf_dict_put_int(ctx, dp, PDF_NAME(K), cp->u.fax.k); if (cp->u.fax.end_of_line) - pdf_dict_put_int(ctx, dp, PDF_NAME(EndOfLine), cp->u.fax.end_of_line); + pdf_dict_put_bool(ctx, dp, PDF_NAME(EndOfLine), cp->u.fax.end_of_line); if (cp->u.fax.encoded_byte_align) - pdf_dict_put_int(ctx, dp, PDF_NAME(EncodedByteAlign), cp->u.fax.encoded_byte_align); + pdf_dict_put_bool(ctx, dp, PDF_NAME(EncodedByteAlign), cp->u.fax.encoded_byte_align); if (cp->u.fax.end_of_block) - pdf_dict_put_int(ctx, dp, PDF_NAME(EndOfBlock), cp->u.fax.end_of_block); + pdf_dict_put_bool(ctx, dp, PDF_NAME(EndOfBlock), cp->u.fax.end_of_block); if (cp->u.fax.black_is_1) - pdf_dict_put_int(ctx, dp, PDF_NAME(BlackIs1), cp->u.fax.black_is_1); + pdf_dict_put_bool(ctx, dp, PDF_NAME(BlackIs1), cp->u.fax.black_is_1); if (cp->u.fax.damaged_rows_before_error) pdf_dict_put_int(ctx, dp, PDF_NAME(DamagedRowsBeforeError), cp->u.fax.damaged_rows_before_error); pdf_dict_put(ctx, imobj, PDF_NAME(Filter), PDF_NAME(CCITTFaxDecode)); |