[libdvbpsi-devel] add dump functionality for the IBP descriptor to dvbinfo

Daniel Kamil Kozar git at videolan.org
Thu Mar 5 11:22:32 CET 2015


libdvbpsi | branch: master | Daniel Kamil Kozar <dkk089 at gmail.com> | Wed Mar  4 21:26:48 2015 +0100| [7c5dcf3798d6e5814f6dc443c066ae3ed0c13347] | committer: Jean-Paul Saman

add dump functionality for the IBP descriptor to dvbinfo

Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=7c5dcf3798d6e5814f6dc443c066ae3ed0c13347
---

 examples/dvbinfo/libdvbpsi.c |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/examples/dvbinfo/libdvbpsi.c b/examples/dvbinfo/libdvbpsi.c
index df298f5..b389924 100644
--- a/examples/dvbinfo/libdvbpsi.c
+++ b/examples/dvbinfo/libdvbpsi.c
@@ -969,6 +969,16 @@ static void DumpSTDDescriptor(dvbpsi_std_dr_t* std_descriptor)
 }
 
 /*****************************************************************************
+ * 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
  *****************************************************************************/
 static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
@@ -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;



More information about the libdvbpsi-devel mailing list