Commit 661ed1d28ef03bc61739e4998b8d60005f1f2ee3
1 parent
be27d47b
Minor fixes to Pl_PNGFilter
Fix comment, remove restriction that doesn't actually matter.
Showing
2 changed files
with
3 additions
and
3 deletions
libqpdf/Pl_PNGFilter.cc
| @@ -16,10 +16,10 @@ Pl_PNGFilter::Pl_PNGFilter(char const* identifier, Pipeline* next, | @@ -16,10 +16,10 @@ Pl_PNGFilter::Pl_PNGFilter(char const* identifier, Pipeline* next, | ||
| 16 | buf2(0), | 16 | buf2(0), |
| 17 | pos(0) | 17 | pos(0) |
| 18 | { | 18 | { |
| 19 | - if ((samples_per_pixel < 1) || (samples_per_pixel > 4)) | 19 | + if (samples_per_pixel < 1) |
| 20 | { | 20 | { |
| 21 | throw std::runtime_error( | 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 | if (! ((bits_per_sample == 1) || | 24 | if (! ((bits_per_sample == 1) || |
| 25 | (bits_per_sample == 2) || | 25 | (bits_per_sample == 2) || |
libqpdf/qpdf/Pl_PNGFilter.hh
| @@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
| 12 | class Pl_PNGFilter: public Pipeline | 12 | class Pl_PNGFilter: public Pipeline |
| 13 | { | 13 | { |
| 14 | public: | 14 | public: |
| 15 | - // Encoding is not presently supported | 15 | + // Encoding is only partially supported |
| 16 | enum action_e { a_encode, a_decode }; | 16 | enum action_e { a_encode, a_decode }; |
| 17 | 17 | ||
| 18 | QPDF_DLL | 18 | QPDF_DLL |