mirror of
https://github.com/qpdf/qpdf.git
synced 2024-06-05 20:00:53 +00:00
Minor fixes to Pl_PNGFilter
Fix comment, remove restriction that doesn't actually matter.
This commit is contained in:
parent
be27d47bdc
commit
661ed1d28e
|
@ -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) ||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user