diff options
Diffstat (limited to 'pngdetail.cpp')
-rw-r--r-- | pngdetail.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pngdetail.cpp b/pngdetail.cpp index b876f71..98f03d2 100644 --- a/pngdetail.cpp +++ b/pngdetail.cpp @@ -304,7 +304,12 @@ Show the filtertypes of each scanline in this PNG image. void displayFilterTypes(const std::vector<unsigned char>& buffer) { std::vector<std::vector<unsigned char> > types; - lodepng::getFilterTypesInterlaced(types, buffer); + unsigned error = lodepng::getFilterTypesInterlaced(types, buffer); + if(error) + { + std::cout << "Error getting filter types" << std::endl; + return; + } if(types.size() == 7) { |