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

Nico Sabbi nsabbi at tiscali.it
Tue Feb 22 14:54:17 CET 2005


Loren Merritt wrote:

> On Wed, 16 Feb 2005, Nico Sabbi wrote:
>
>>
>> I added some debug statement in libavcodec/h264.c to print most of 
>> sps and vui values read from the bitstream, and I could match all 
>> fields up to (but excluding) the said timing values. I don't really 
>> understand what I did wrong.
>>
>> Can someone give a look at the code, please?
>
>
> 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".
>
> --Loren Merritt
>

isn't the video bitstream supposed to prevent start code emulation 
inserting the proper marker bits
(or whatever else) at the right place? This is the first time I find a 
similar situation parsing mpeg video
streams. The video was generated by x264.

Thanks,
            Nico




More information about the MPlayer-dev-eng mailing list