[dvblast-devel] bistream PSI version bug

Contact (COEXSI) contact at coexsi.fr
Thu Oct 10 13:51:09 CEST 2013


Dear all,

There is a bug in the function psi_get_version (/mpeg/psi/psi.h).

The mask must be 0x3e instead of 0x1e as the version is coded on 5 bits.

Here is the original code:

static inline uint8_t psi_get_version(const uint8_t *p_section)
{
    return (p_section[5] & 0x1e) >> 1;
}

Sebastien.



More information about the dvblast-devel mailing list