Browse Source

Fix lcn description decoding

Georgi Chorbadzhiyski 3 years ago
parent
commit
f2456cb2f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      descs.c

+ 1 - 1
descs.c View File

@@ -492,7 +492,7 @@ void ts_descriptor_dump(uint8_t *desc_data, int desc_data_len) {
492 492
 					service_id  |= data[i + 1];
493 493
 					visible      = data[i+2] >> 7;			// x1111111
494 494
 //					reserved1    = data[i+2] &~ 0x80 >> 6;		// 1x111111
495
-					lcn          = data[i+2] &~ 0xc0 << 8;		// 11xxxxxx
495
+					lcn          = (data[i+2] &~ 0xc0) << 8;		// 11xxxxxx
496 496
 					lcn         |= data[i+3];			// xxxxxxxx
497 497
 					ts_LOGf("%s  Service_ID: 0x%04x (%4d) LCN: %3d Visible: %d\n",
498 498
 						pad, service_id, service_id, lcn, visible);