[libdvbpsi-devel] dvbinfo: add descriptor 0x10
Jean-Paul Saman
git at videolan.org
Mon Mar 2 12:19:01 CET 2015
libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Mon Mar 2 12:14:19 2015 +0100| [1daefa119bd7ed7b15a7554558a33ad930cba2dd] | committer: Jean-Paul Saman
dvbinfo: add descriptor 0x10
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=1daefa119bd7ed7b15a7554558a33ad930cba2dd
---
examples/dvbinfo/libdvbpsi.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/examples/dvbinfo/libdvbpsi.c b/examples/dvbinfo/libdvbpsi.c
index fc9a9c7..ae976e9 100644
--- a/examples/dvbinfo/libdvbpsi.c
+++ b/examples/dvbinfo/libdvbpsi.c
@@ -952,6 +952,15 @@ static void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor
}
/*****************************************************************************
+ * DumpSmoothingBufferDescriptor
+ *****************************************************************************/
+static void DumpSmoothingBufferDescriptor(dvbpsi_smoothing_buffer_dr_t *smoothing_descriptor)
+{
+ printf("Leak rate: %d \n", smoothing_descriptor->i_sb_leak_rate);
+ printf("Size: %d \n", smoothing_descriptor->i_sb_size);
+}
+
+/*****************************************************************************
* DumpSystemClockDescriptor
*****************************************************************************/
static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
@@ -1508,6 +1517,9 @@ static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
case 0x0e:
DumpMaxBitrateDescriptor(dvbpsi_DecodeMaxBitrateDr(p_descriptor));
break;
+ case 0x10:
+ DumpSmoothingBufferDescriptor(dvbpsi_DecodeSmoothingBufferDr(p_descriptor));
+ break;
case 0x4c:
DumpTimeShiftedServiceDescriptor(dvbpsi_DecodeTimeShiftedServiceDr(p_descriptor));
break;
More information about the libdvbpsi-devel
mailing list