summaryrefslogtreecommitdiff
path: root/pdf/pdf_stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf_stream.c')
-rw-r--r--pdf/pdf_stream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf/pdf_stream.c b/pdf/pdf_stream.c
index 829210ea..a4af8e39 100644
--- a/pdf/pdf_stream.c
+++ b/pdf/pdf_stream.c
@@ -59,10 +59,10 @@ build_filter(fz_stream *chain, pdf_document * xref, pdf_obj * f, pdf_obj * p, in
int colors = pdf_to_int(pdf_dict_gets(p, "Colors"));
int bpc = pdf_to_int(pdf_dict_gets(p, "BitsPerComponent"));
- if (predictor == 0) predictor = 1;
- if (columns == 0) columns = 1;
- if (colors == 0) colors = 1;
- if (bpc == 0) bpc = 8;
+ if (predictor <= 0) predictor = 1;
+ if (columns <= 0) columns = 1;
+ if (colors <= 0) colors = 1;
+ if (bpc <= 0) bpc = 8;
if (!strcmp(s, "ASCIIHexDecode") || !strcmp(s, "AHx"))
return fz_open_ahxd(chain);