From 191ff35999de00355efb5b75a522ec2e793c912b Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 19 Sep 2018 07:28:00 +0200 Subject: [PATCH] Fix -pdfbmp+ statistics - if 8-bit image size didn't match, don't count the stream as PDF 8-bit - fixes #27 --- precomp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/precomp.cpp b/precomp.cpp index 720c3c5..33a8331 100644 --- a/precomp.cpp +++ b/precomp.cpp @@ -3302,7 +3302,8 @@ void try_decompression_pdf(int windowbits, int pdf_header_length, int img_width, if (DEBUG_MODE) { printf("Image size didn't match with stream size\n"); } - recompressed_pdf_count--; + decompressed_pdf_count_8_bit--; + decompressed_pdf_count++; } }