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

add dump functionality for the IBP descriptor to dvbinfo

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 4160dd94
......@@ -968,6 +968,16 @@ static void DumpSTDDescriptor(dvbpsi_std_dr_t* std_descriptor)
printf("Leak valid flag: %d\n", std_descriptor->b_leak_valid_flag);
}
/*****************************************************************************
* DumpIBPDescriptor
*****************************************************************************/
static void DumpIBPDescriptor(dvbpsi_ibp_dr_t *ibp_descriptor)
{
printf("Closed GOP flag: %d \n", ibp_descriptor->b_closed_gop_flag);
printf("Identical GOP flag: %d \n", ibp_descriptor->b_identical_gop_flag);
printf("Max GOP length: %" PRIu16 " \n", ibp_descriptor->i_max_gop_length);
}
/*****************************************************************************
* DumpSystemClockDescriptor
*****************************************************************************/
......@@ -1531,6 +1541,9 @@ static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
case 0x11:
DumpSTDDescriptor(dvbpsi_DecodeSTDDr(p_descriptor));
break;
case 0x12:
DumpIBPDescriptor(dvbpsi_DecodeIBPDr(p_descriptor));
break;
case 0x4c:
DumpTimeShiftedServiceDescriptor(dvbpsi_DecodeTimeShiftedServiceDr(p_descriptor));
break;
......
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