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

Loren Merritt lorenm at u.washington.edu
Wed Feb 23 12:44:11 CET 2005


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.

--Loren Merritt




More information about the MPlayer-dev-eng mailing list