ONID and TSID values of 65535 (0xFFFF) are used and valid values.
This fix allows the proper reception of streams with this value.
static inline uint16_t
extract_tsid(const uint8_t *ptr)
{
- uint16_t r = (ptr[0] << 8) | ptr[1];
- if (r == MPEGTS_TSID_NONE) r = 55555;
- return r;
+ return (ptr[0] << 8) | ptr[1];
}
static inline uint16_t
extract_onid(const uint8_t *ptr)
{
- uint16_t r = (ptr[0] << 8) | ptr[1];
- if (r == MPEGTS_ONID_NONE) r = 55555;
- return r;
+ return (ptr[0] << 8) | ptr[1];
}