Re: Ogg encapsulation

Glenn Randers-Pehrson <[email protected]> Thu, 01 Apr 2004 10:19:34 -0500
Newsgroups gmane.comp.graphics.mng.general
Message-ID <[email protected]>
At 04:53 PM 4/1/2004 +0200, Gerard Juyn wrote:
>> >But I think it's best if we would entirely skip reading the 4 CRC
>> >bytes, so as not to open up the field for people to turn the flag on
>> >just to bypass invalid CRC's created by buggy encoders!
>> 
>> I don't think the Bad-CRC-handling macros are being abused by libpng
>> users, though.
>
>Net yet you mean?!?
>
>
>> Note that leaving them in allows the new code to read old spec-compliant
>> PNGs, too, only faster.
>
>An "old spec" didn't include crc then? Otherwise how would spec-compliant 
>and invalid CRC exactly rhyme???

"leaving them in"

new code reads a dummy CRC where the file has an actual one.

As opposed to "leaving them out"

new code reads nothing and is 4 bytes out of sync when it tries to
read the next chunk's length bytes.

Glenn



--
Send the message body "help" to [email protected]