From: Michel L. <wa...@zo...> - 2008-08-25 02:11:12
|
On Fri, Aug 22, 2008 at 11:51:15PM +0200, anand meher wrote: > I want to clarify one point, will a PES packet carry only one > coded picture, say an I or a B or a P? or a particular PES packet can have > last slice of a picture ending and then followed immediately by the next > picture header?? The mpeg standard makes no guarantees about this - the PES payload can start and end at arbitrary byte aligned positions in the ES stream. A startcode in the ES stream could even be split accross two (or up to 4, but that'd be beyond perverse) PES packets. In practice, it's very common that PES packets are closed after the last byte of the last slice of every picture in the ES stream, but you should not rely on this if you want to be a compliant decoder. I believe mplayer violates this - it seems to mostly get away with it, though. -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies. |