Commit 661ed1d28ef03bc61739e4998b8d60005f1f2ee3

Authored by Jay Berkenbilt
1 parent be27d47b

Minor fixes to Pl_PNGFilter

Fix comment, remove restriction that doesn't actually matter.
libqpdf/Pl_PNGFilter.cc
... ... @@ -16,10 +16,10 @@ Pl_PNGFilter::Pl_PNGFilter(char const* identifier, Pipeline* next,
16 16 buf2(0),
17 17 pos(0)
18 18 {
19   - if ((samples_per_pixel < 1) || (samples_per_pixel > 4))
  19 + if (samples_per_pixel < 1)
20 20 {
21 21 throw std::runtime_error(
22   - "PNGFilter created with invalid samples_per_pixel not from 1 to 4");
  22 + "PNGFilter created with invalid samples_per_pixel");
23 23 }
24 24 if (! ((bits_per_sample == 1) ||
25 25 (bits_per_sample == 2) ||
... ...
libqpdf/qpdf/Pl_PNGFilter.hh
... ... @@ -12,7 +12,7 @@
12 12 class Pl_PNGFilter: public Pipeline
13 13 {
14 14 public:
15   - // Encoding is not presently supported
  15 + // Encoding is only partially supported
16 16 enum action_e { a_encode, a_decode };
17 17  
18 18 QPDF_DLL
... ...