aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_PNGFilter.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-01-13 19:21:23 +0100
committerJay Berkenbilt <ejb@ql.org>2018-01-14 01:49:42 +0100
commit661ed1d28ef03bc61739e4998b8d60005f1f2ee3 (patch)
treec58d38aca40a2c08af4d19b5551c423bb598b420 /libqpdf/Pl_PNGFilter.cc
parentbe27d47bdc1195f425821d479b9ca733051343c0 (diff)
downloadqpdf-661ed1d28ef03bc61739e4998b8d60005f1f2ee3.tar.zst
Minor fixes to Pl_PNGFilter
Fix comment, remove restriction that doesn't actually matter.
Diffstat (limited to 'libqpdf/Pl_PNGFilter.cc')
-rw-r--r--libqpdf/Pl_PNGFilter.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/Pl_PNGFilter.cc b/libqpdf/Pl_PNGFilter.cc
index 35ab03f8..730d6d98 100644
--- a/libqpdf/Pl_PNGFilter.cc
+++ b/libqpdf/Pl_PNGFilter.cc
@@ -16,10 +16,10 @@ Pl_PNGFilter::Pl_PNGFilter(char const* identifier, Pipeline* next,
buf2(0),
pos(0)
{
- if ((samples_per_pixel < 1) || (samples_per_pixel > 4))
+ if (samples_per_pixel < 1)
{
throw std::runtime_error(
- "PNGFilter created with invalid samples_per_pixel not from 1 to 4");
+ "PNGFilter created with invalid samples_per_pixel");
}
if (! ((bits_per_sample == 1) ||
(bits_per_sample == 2) ||