diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-01-13 19:21:23 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-01-14 01:49:42 +0100 |
commit | 661ed1d28ef03bc61739e4998b8d60005f1f2ee3 (patch) | |
tree | c58d38aca40a2c08af4d19b5551c423bb598b420 /libqpdf | |
parent | be27d47bdc1195f425821d479b9ca733051343c0 (diff) | |
download | qpdf-661ed1d28ef03bc61739e4998b8d60005f1f2ee3.tar.zst |
Minor fixes to Pl_PNGFilter
Fix comment, remove restriction that doesn't actually matter.
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/Pl_PNGFilter.cc | 4 | ||||
-rw-r--r-- | libqpdf/qpdf/Pl_PNGFilter.hh | 2 |
2 files changed, 3 insertions, 3 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) || diff --git a/libqpdf/qpdf/Pl_PNGFilter.hh b/libqpdf/qpdf/Pl_PNGFilter.hh index b5fcf536..f167c67c 100644 --- a/libqpdf/qpdf/Pl_PNGFilter.hh +++ b/libqpdf/qpdf/Pl_PNGFilter.hh @@ -12,7 +12,7 @@ class Pl_PNGFilter: public Pipeline { public: - // Encoding is not presently supported + // Encoding is only partially supported enum action_e { a_encode, a_decode }; QPDF_DLL |