[dvblast-devel] bistream PSI version bug

Georgi Chorbadzhiyski gf at unixsol.org
Thu Oct 10 14:48:59 CEST 2013


Around 10/10/2013 03:43 PM, Georgi Chorbadzhiyski scribbled:
> Around 10/10/2013 02:51 PM, Contact (COEXSI) scribbled:
>> 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;
>> }
> 
> Could you send a send a patch?

Nevermind, Christophe fixed it.



More information about the dvblast-devel mailing list