Parameters:
- BitParser *bp
- Pointer to Dali bit parser structure. Assumed initialized and wrapped around a bit stream containing MPEG-2 data.
- Mpeg2SeqHdr *hdr
- Pointer to previously allocated Mpeg2SeqHdr structure.
Return value:
Number of bytes parsed.
Description:
Parses MPEG-2 sequence extension header from bp and initializes hdr with values parsed. If bp is not at the beginning of an MPEG-2 sequence extension header, returns a negative error code, otherwise returns number of bytes parsed.