[vlc-devel] [PATCH] hxx_sei: Fix improper counting of remaining bytes due to 3-byte emulation

Francois Cartegnie fcvlcdev at free.fr
Thu Aug 16 15:28:53 CEST 2018

Le 09/08/2018 à 21:36, Devin Heitmueller a écrit :
> The routine which iterates over the RBSP to process the SEIs
> attempts to accommodate the individual parsers not reading all
> the bytes (i.e. by reading any remaining bytes before restarting
> the loop), as well as detecting if the parser for a given type
> read past the end of SEI.  However the implementation does this
> by noting the position of the start of the NAL, getting the
> position after parsing, and computing the difference.  This does
> not take into account that the bitstream parser has a pf_forward
> routine to strip out 3-byte emulation.

I'm changing the vlc_bits on master to take accounting of pos &
remaining bytes for custom byte forwarders.
Fails for now :/

Francois Cartegnie
VideoLAN - VLC Developer

More information about the vlc-devel mailing list