]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
revert bogus ONID and TSID remapping 1297/head
authorpremultiply <ulrich.peters@posteo.de>
Sat, 8 Jun 2019 09:38:57 +0000 (11:38 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 30 Jun 2019 14:41:26 +0000 (16:41 +0200)
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

index 66f82fd8034414b40d28ec47694ee2d1ffb4d579..cafa3def3fce5644d731e178805c2a8cf2396c09 100644 (file)
@@ -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];
 }