mpeg descriptor: add Time Shifted Event Descriptor (0x4F)

This commit is contained in:
Roman Volkov 2022-02-12 16:21:54 +02:00 committed by A Wireshark GitLab Utility
parent 2406588c64
commit c73101601e
1 changed files with 27 additions and 0 deletions

View File

@ -1605,6 +1605,19 @@ proto_mpeg_descriptor_dissect_extended_event(tvbuff_t *tvb, guint offset, proto_
}
/* 0x4F Time Shifted Event Descriptor */
static int hf_mpeg_descr_time_shifted_event_reference_service_id = -1;
static int hf_mpeg_descr_time_shifted_event_reference_event_id = -1;
static void
proto_mpeg_descriptor_dissect_time_shifted_event(tvbuff_t *tvb, guint offset, proto_tree *tree)
{
proto_tree_add_item(tree, hf_mpeg_descr_time_shifted_event_reference_service_id, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
proto_tree_add_item(tree, hf_mpeg_descr_time_shifted_event_reference_event_id, tvb, offset, 2, ENC_BIG_ENDIAN);
}
/* 0x50 Component Descriptor */
static int hf_mpeg_descr_component_stream_content_ext = -1;
static int hf_mpeg_descr_component_stream_content = -1;
@ -4280,6 +4293,9 @@ proto_mpeg_descriptor_dissect(tvbuff_t *tvb, guint offset, proto_tree *tree)
case 0x4E: /* Extended Event Descriptor */
proto_mpeg_descriptor_dissect_extended_event(tvb, offset, descriptor_tree);
break;
case 0x4F: /* Time Shifted Event Descriptor */
proto_mpeg_descriptor_dissect_time_shifted_event(tvb, offset, descriptor_tree);
break;
case 0x50: /* Component Descriptor */
proto_mpeg_descriptor_dissect_component(tvb, offset, len, descriptor_tree);
break;
@ -5214,6 +5230,17 @@ proto_register_mpeg_descriptor(void)
FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL
} },
/* 0x4F Time Shifted Event Descriptor */
{ &hf_mpeg_descr_time_shifted_event_reference_service_id, {
"Reference Service ID", "mpeg_descr.tshift_evt.sid",
FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL
} },
{ &hf_mpeg_descr_time_shifted_event_reference_event_id, {
"Reference Event ID", "mpeg_descr.tshift_evt.eid",
FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL
} },
/* 0x50 Component Descriptor */
{ &hf_mpeg_descr_component_nga_bits_b7_reserved, {
"Reserved zero for future use", "mpeg_descr.component.nga.reserved",