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

add a dump function for MultiplexBuffer descriptor to dvbinfo

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent ff6f7340
...@@ -1101,6 +1101,13 @@ static void DumpExternalESIDDescriptor(const void *p_descriptor) ...@@ -1101,6 +1101,13 @@ static void DumpExternalESIDDescriptor(const void *p_descriptor)
printf("External_ES_ID : 0x%04" PRIx16 "\n", p_ext_es_id_dr->i_ext_es_id); printf("External_ES_ID : 0x%04" PRIx16 "\n", p_ext_es_id_dr->i_ext_es_id);
} }
static void DumpMultiplexBufferDescriptor(const void *p_descriptor)
{
const dvbpsi_mpeg_mux_buf_dr_t *p_mux_buf_dr = p_descriptor;
printf("MB_buffer_size : 0x%06" PRIx32 "\n", p_mux_buf_dr->i_mb_buf_size);
printf("\t\tTB_leak_rate : 0x%06" PRIx32 "\n", p_mux_buf_dr->i_tb_leak_rate);
}
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;
...@@ -1875,6 +1882,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor) ...@@ -1875,6 +1882,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded = dvbpsi_decode_mpeg_ext_es_id_dr(p_descriptor); p_decoded = dvbpsi_decode_mpeg_ext_es_id_dr(p_descriptor);
dump_dr_fn = DumpExternalESIDDescriptor; dump_dr_fn = DumpExternalESIDDescriptor;
break; break;
case 0x23:
p_decoded = dvbpsi_decode_mpeg_mux_buf_dr(p_descriptor);
dump_dr_fn = DumpMultiplexBufferDescriptor;
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