Re: AVI, padding
Burkhard Plaum <[email protected]> Thu, 10 Mar 2011 17:25:31 +0100
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Am 10.03.2011 17:13, schrieb Torsten Mohr: > Hello, > >> As far as I know, there is at most one padding byte in AVIs >> such that all chunks (header chunks and data chunks) start at even >> file offsets. > > thanks for your answer. > > This is not what i experience when decoding an AVI that contains single JPEGs. > > The JPEGs themselves contain correct start- and end-markers and after the end- > markers there is a variable amount of padding. > The padding is always 0x00 and the number is variable from 0 to 24 (can be > more, i did not look further). > > > Best regards, > Torsten. If the total size (including padding) of the JPEG-frame is the AVI chunk size, this isn't a AVI issue but a JPEG issue. I guess every sane JPEG-decoder will ignore all data after the end-marker, but the JPEG-Standard might tell more about this. Burkhard ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d