I realize VirtualDub uses it's own code, but the PNG file in question can be read by the simple Paint program supplied in Windows and by the Windows internet explorer. I'm pretty sure (but don't have any proof) that Microsoft would use other PNG reading code.
FireFox and MATLAB cannot read the file in question.
When using version 1.2.3 of zlib and version 1.2.39 of libpng, the test code...
I have a sequence of PNG files that were generated by VirtualDub (http://www.virtualdub.org/). A few of the files in the sequence can not be read by the libpng + zlib source combination. The problem causing PNG can be found at
http://phlash.toyon.com/BadPng/image00096.png.