Skip to content

Instantly share code, notes, and snippets.

@dwbuiten
Created September 30, 2020 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwbuiten/8688d6ab658b2c0d1eecad18d915a348 to your computer and use it in GitHub Desktop.
Save dwbuiten/8688d6ab658b2c0d1eecad18d915a348 to your computer and use it in GitHub Desktop.
--- broken.txt 2020-09-30 22:12:52.605289590 +0100
+++ fixed.txt 2020-09-30 22:12:40.529289680 +0100
@@ -23865,9 +23865,19 @@
transport_priority: 0 (0x00)
PID: 17 (0x0011) [= DVB Service Description Table (SDT), Bouquet Association Table (BAT)]
transport_scrambling_control: 0 (0x00) [= No scrambling of TS packet payload]
-adaptation_field_control: 1 (0x01) [= no adaptation_field, payload only]
+adaptation_field_control: 3 (0x03) [= adaptation_field followed by payload]
continuity_counter: 0 (0x00) [= (duplicate packet)]
- Payload: (len: 184)
+ Adaptation_field:
+ adaptation_field_length: 1 (0x01)
+ discontinuity_indicator: 1 (0x01)
+ random_access_indicator: 0 (0x00)
+ elementary_stream_priotity_indicator: 0 (0x00)
+ PCR_flag: 0 (0x00)
+ OPCR_flag: 0 (0x00)
+ splicing_point_flag: 0 (0x00)
+ transport_private_data_flag: 0 (0x00)
+ adaptation_field_extension_flag: 0 (0x00)
+ Payload: (len: 182)
==> pointer_field: 0 (0x00)
==> Section table: 66 (0x42) [= Service Description Table (SDT) - actual transport stream]
Data-Bytes:
@@ -23882,7 +23892,7 @@
0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
0090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
- 00b0: ff ff ff ff ff ff ff ff ........
+ 00b0: ff ff ff ff ff ff ......
==========================================================
@@ -23895,9 +23905,19 @@
transport_priority: 0 (0x00)
PID: 0 (0x0000) [= ISO 13818-1 Program Association Table (PAT)]
transport_scrambling_control: 0 (0x00) [= No scrambling of TS packet payload]
-adaptation_field_control: 1 (0x01) [= no adaptation_field, payload only]
+adaptation_field_control: 3 (0x03) [= adaptation_field followed by payload]
continuity_counter: 0 (0x00) [= (continuity error!)]
- Payload: (len: 184)
+ Adaptation_field:
+ adaptation_field_length: 1 (0x01)
+ discontinuity_indicator: 1 (0x01)
+ random_access_indicator: 0 (0x00)
+ elementary_stream_priotity_indicator: 0 (0x00)
+ PCR_flag: 0 (0x00)
+ OPCR_flag: 0 (0x00)
+ splicing_point_flag: 0 (0x00)
+ transport_private_data_flag: 0 (0x00)
+ adaptation_field_extension_flag: 0 (0x00)
+ Payload: (len: 182)
==> pointer_field: 0 (0x00)
==> Section table: 0 (0x00) [= Program Association Table (PAT)]
Data-Bytes:
@@ -23912,7 +23932,7 @@
0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
0090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
- 00b0: ff ff ff ff ff ff ff ff ........
+ 00b0: ff ff ff ff ff ff ......
==========================================================
@@ -23925,9 +23945,19 @@
transport_priority: 0 (0x00)
PID: 4096 (0x1000) [= ]
transport_scrambling_control: 0 (0x00) [= No scrambling of TS packet payload]
-adaptation_field_control: 1 (0x01) [= no adaptation_field, payload only]
+adaptation_field_control: 3 (0x03) [= adaptation_field followed by payload]
continuity_counter: 0 (0x00) [= (continuity error!)]
- Payload: (len: 184)
+ Adaptation_field:
+ adaptation_field_length: 1 (0x01)
+ discontinuity_indicator: 1 (0x01)
+ random_access_indicator: 0 (0x00)
+ elementary_stream_priotity_indicator: 0 (0x00)
+ PCR_flag: 0 (0x00)
+ OPCR_flag: 0 (0x00)
+ splicing_point_flag: 0 (0x00)
+ transport_private_data_flag: 0 (0x00)
+ adaptation_field_extension_flag: 0 (0x00)
+ Payload: (len: 182)
==> pointer_field: 0 (0x00)
==> Section table: 2 (0x02) [= Program Map Table (PMT)]
Data-Bytes:
@@ -23942,7 +23972,7 @@
0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
0090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
00a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
- 00b0: ff ff ff ff ff ff ff ff ........
+ 00b0: ff ff ff ff ff ff ......
==========================================================
@@ -23959,7 +23989,7 @@
continuity_counter: 0 (0x00) [= (continuity error!)]
Adaptation_field:
adaptation_field_length: 7 (0x07)
- discontinuity_indicator: 0 (0x00)
+ discontinuity_indicator: 1 (0x01)
random_access_indicator: 1 (0x01)
elementary_stream_priotity_indicator: 0 (0x00)
PCR_flag: 1 (0x01)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment