Commit ff6f7340 authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

add a dump function for External_ES_ID descriptor to dvbinfo

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 53517376
...@@ -1095,6 +1095,12 @@ static void DumpFMCDescriptor(const void *p_descriptor) ...@@ -1095,6 +1095,12 @@ static void DumpFMCDescriptor(const void *p_descriptor)
} }
} }
static void DumpExternalESIDDescriptor(const void *p_descriptor)
{
const dvbpsi_mpeg_ext_es_id_dr_t *p_ext_es_id_dr = p_descriptor;
printf("External_ES_ID : 0x%04" PRIx16 "\n", p_ext_es_id_dr->i_ext_es_id);
}
static void DumpContentLabellingDescriptor(const void *p_descriptor) static void DumpContentLabellingDescriptor(const void *p_descriptor)
{ {
const dvbpsi_mpeg_content_labelling_dr_t *p_content_lbl_dr = p_descriptor; const dvbpsi_mpeg_content_labelling_dr_t *p_content_lbl_dr = p_descriptor;
...@@ -1865,6 +1871,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor) ...@@ -1865,6 +1871,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded = dvbpsi_decode_mpeg_fmc_dr(p_descriptor); p_decoded = dvbpsi_decode_mpeg_fmc_dr(p_descriptor);
dump_dr_fn = DumpFMCDescriptor; dump_dr_fn = DumpFMCDescriptor;
break; break;
case 0x20:
p_decoded = dvbpsi_decode_mpeg_ext_es_id_dr(p_descriptor);
dump_dr_fn = DumpExternalESIDDescriptor;
break;
case 0x24: case 0x24:
p_decoded = dvbpsi_decode_mpeg_content_labelling_dr(p_descriptor); p_decoded = dvbpsi_decode_mpeg_content_labelling_dr(p_descriptor);
dump_dr_fn = DumpContentLabellingDescriptor; dump_dr_fn = DumpContentLabellingDescriptor;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment