From 0a60f73eeea638ecbdd1d228f2e087ade4debf28 Mon Sep 17 00:00:00 2001 From: premultiply Date: Sat, 8 Jun 2019 11:38:57 +0200 Subject: [PATCH] revert bogus ONID and TSID remapping ONID and TSID values of 65535 (0xFFFF) are used and valid values. This fix allows the proper reception of streams with this value. --- src/input/mpegts/dvb_psi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/input/mpegts/dvb_psi.c b/src/input/mpegts/dvb_psi.c index 66f82fd80..cafa3def3 100644 --- a/src/input/mpegts/dvb_psi.c +++ b/src/input/mpegts/dvb_psi.c @@ -109,18 +109,14 @@ extract_4byte(const uint8_t *ptr) 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]; } -- 2.47.2