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

add a dump function for IOD descriptor to dvbinfo

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 8efa5a12
......@@ -1067,6 +1067,16 @@ static void DumpMPEG4AudioDescriptor(const void *p_descriptor)
mpeg4_descriptor->i_mpeg4_audio_profile_and_level);
}
static void DumpIODDescriptor(const void *p_descriptor)
{
const dvbpsi_mpeg_iod_dr_t *p_iod_dr = p_descriptor;
printf("Scope of IOD label : 0x%02" PRIx8 "\n",
p_iod_dr->i_scope_of_iod_label);
printf("\t\tIOD label : 0x%02" PRIx8 "\n", p_iod_dr->i_iod_label);
printf("\t\tInitialObjectDescriptor : 0x%02" PRIx8 "\n",
p_iod_dr->i_initial_object_descriptor);
}
static void DumpContentLabellingDescriptor(const void *p_descriptor)
{
const dvbpsi_mpeg_content_labelling_dr_t *p_content_lbl_dr = p_descriptor;
......@@ -1825,6 +1835,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded = dvbpsi_decode_mpeg_mpeg4_audio_dr(p_descriptor);
dump_dr_fn = DumpMPEG4AudioDescriptor;
break;
case 0x1d:
p_decoded = dvbpsi_decode_mpeg_iod_dr(p_descriptor);
dump_dr_fn = DumpIODDescriptor;
break;
case 0x24:
p_decoded = dvbpsi_decode_mpeg_content_labelling_dr(p_descriptor);
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