Skip to content

Commit

Permalink
pngdetail tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lvandeve committed Dec 3, 2018
1 parent 190a75c commit 2e6b2ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pngdetail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ struct Data
{
error = lodepng::load_file(buffer, filename); //load the image file with given filename
}
else
{
error = 0; // for reloadpixels, reset error if file was already successfully loaded
}
}

// Load header info (plus a few more nearby light chunks) if not already loaded, and the file if needed
Expand Down Expand Up @@ -926,7 +930,8 @@ void loadWithErrorRecovery(Data& data, const Options& options)
data.loadPixels();

// In case of checksum errors and some other ignorable errors, report it but ignore it and retry
while (error) {
while(error)
{
// Not showing regular error here, is shown at end of program.
unsigned error2 = error;
if(error == 57)
Expand Down

0 comments on commit 2e6b2ba

Please sign in to comment.