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 | 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) || | ... | ... |