On Wed, Feb 11, 2009 at 03:42:54PM +0100, Roel Kluin wrote:
With while (*ptr++ != 0x4489) { ... } *ptr will be incremented past 0x4489 after the loop.
Yes, that is on purpose. The magic bytes of 0x4489 are a sync mark, the interesting stuff always starts afterwards. The whole decoding routing uses the current pointer the way that it always points to the next unprocessed position when it arrives at the next segment of decoding. I'd rather have this consistent in the whole driver. Bye, Joerg
Attachment:
signature.asc
Description: Digital signature