Baptiste Coudurier <[email protected]> added the comment:

On 07/22/2010 09:00 AM, pvnsUser wrote:
>
> New submission from pvnsUser<[email protected]>:
>
> I created a program that parses H.264 media. I created some media using ffmpeg
> and my parsing of this file failed when I reached the Access Unit Nal as 
> created
> by ffmpeg.
>
> As I understand the ffmpeg code, the Access Unit is essentially hardcoded in
> mpegtsenc.c to be
> 0x00000001  -->  Nal start code
> 0x09 -->  indicating the Access Unit Nal
> 0xe0 -->  1110 0000 ->  111 00000
> where 111 is the picture type (3 bits)
> 00000 is the RBSP Trailing Bits
>
> Section section 7.3.2.4 of 14496-10 describes how to read the Access Unit.
> Section 7.3.2.11 describes how to read the rbsp_trailing_bits. As I understand
> section 7.3.2.11, the first bit of the rbsp_trailing_bits section should be a 
> 1.
> If this is the case, ffmpeg should be changed to insert 0xf0 not 0xe0.
>
> Am I missing something?

I think you are correct, can any h.264 expert confirm please ?

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2122>
________________________________________________

Reply via email to