[MPlayer-dev-eng] Need help with this H264 patch

Laurent Aimar fenrir at via.ecp.fr
Thu Feb 24 17:17:48 CET 2005


On Wed, Feb 23, 2005, Loren Merritt wrote:
> On Wed, 23 Feb 2005, Nico Sabbi wrote:
> >Loren Merritt wrote:
> >
> >>Your problem is the start-code emulation prevention function:
> >>Before sending a packet to your parser, you must scan though it and 
> >>replace any (byte-aligned) instance of "0x00 0x00 0x03" with "0x00 0x00".
> >
> >it works, yet it's one of the most ridicolous things I encountered so far 
> >in a bitstream definition.
> 
> Note that it's only required by Annex B. If your h264 stream is 
> encapsulated in something else that delineates packets (e.g. MP4) then 
> startcodes need not be used, so emulation prevention isn't needed either.

 Even in .mp4, emulation prevention is needed ...

-- 
fenrir




More information about the MPlayer-dev-eng mailing list