From: J. H. <cot...@ho...> - 2005-05-31 17:29:32
|
Ah... you are right. The function png_read_png does indeed call png_read_end. This is most likely the problem since the error is generated by a line that checks the read count. The documentation threw me off because it says: "After you are finished reading the image through either the high- or low-level interfaces, you can finish reading the file." So naturally I thought I was missing png_read_end. Alas I should remember the rule: "If it ain't broke, don't fix it." Thanks for the help! -Jeremy >From: "Glenn Randers-Pehrson <glennrp>" <gl...@co...> >Reply-To: png...@li... >To: png...@li... >Subject: Re: [png-mng-implement] png_read_end producing "Read Error" >Date: Tue, 31 May 2005 12:54:40 -0400 > >"J. Hayes" wrote: > > > > Yes, I was being overzealous with assert. This doesn't fix the >png_read_end > > problem I'm having, but thanks for the catch. I should probably remove >the > > assert from the header read for the same reason. > > > > Do you know why the png_read_end is giving the error though? > >Png_read_png() contains its own call to png_read_end. The effect is to >call >png_read_end() twice, which I suppose could cause an error. > >Glenn > > >------------------------------------------------------- >This SF.Net email is sponsored by Yahoo. >Introducing Yahoo! Search Developer Network - Create apps using Yahoo! >Search APIs Find out how you can build Yahoo! directly into your own >Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 >_______________________________________________ >png-mng-implement mailing list >png...@li... >https://lists.sourceforge.net/lists/listinfo/png-mng-implement |