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

Jean-Paul Saman jpsaman at videolan.org
Thu Mar 5 11:24:21 CET 2015


Patch applied, thanks for contributing.


Kind regards

Jean-Paul Saman

On Wed, Mar 4, 2015 at 9:26 PM, Daniel Kamil Kozar <dkk089 at gmail.com> wrote:

> ---
>  examples/dvbinfo/libdvbpsi.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/examples/dvbinfo/libdvbpsi.c b/examples/dvbinfo/libdvbpsi.c
> index ae976e9..b1b8fbf 100644
> --- a/examples/dvbinfo/libdvbpsi.c
> +++ b/examples/dvbinfo/libdvbpsi.c
> @@ -961,6 +961,16 @@ static void
> DumpSmoothingBufferDescriptor(dvbpsi_smoothing_buffer_dr_t *smoothin
>  }
>
>
>  /*****************************************************************************
> + * 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)
> @@ -1520,6 +1530,9 @@ static void DumpDescriptors(const char* str,
> dvbpsi_descriptor_t* p_descriptor)
>              case 0x10:
>
>  DumpSmoothingBufferDescriptor(dvbpsi_DecodeSmoothingBufferDr(p_descriptor));
>                  break;
> +            case 0x12:
> +                DumpIBPDescriptor(dvbpsi_DecodeIBPDr(p_descriptor));
> +                break;
>              case 0x4c:
>
>  DumpTimeShiftedServiceDescriptor(dvbpsi_DecodeTimeShiftedServiceDr(p_descriptor));
>                  break;
> --
> 2.3.1
>
> _______________________________________________
> libdvbpsi-devel mailing list
> libdvbpsi-devel at videolan.org
> https://mailman.videolan.org/listinfo/libdvbpsi-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libdvbpsi-devel/attachments/20150305/12dd6dde/attachment.html>


More information about the libdvbpsi-devel mailing list