[libdvbpsi-devel] [PATCH 1/2] Correctly flag mpeg2 video data in video_stream_descriptor

Jean-Paul Saman jpsaman at videolan.org
Thu Aug 14 14:05:25 CEST 2014


J-b

Good catch, applied.

Thanks

Jean-Paul Saman

On Tue, Aug 12, 2014 at 4:04 AM, Jean-Baptiste Kempf <jb at videolan.org>
wrote:

> See ISO/IEC 13818-1 : 2000, table 2-40 and 2.6.3
>
> See https://trac.videolan.org/vlc/ticket/4200
> ---
>  src/descriptors/dr_02.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/descriptors/dr_02.c b/src/descriptors/dr_02.c
> index 1c35d83..774a1c0 100644
> --- a/src/descriptors/dr_02.c
> +++ b/src/descriptors/dr_02.c
> @@ -60,7 +60,7 @@ dvbpsi_vstream_dr_t *
> dvbpsi_DecodeVStreamDr(dvbpsi_descriptor_t * p_descriptor)
>    if(!p_decoded) return NULL;
>
>    /* Decode data and check the length */
> -  p_decoded->b_mpeg2 = (p_descriptor->p_data[0] & 0x04) ? true : false;
> +  p_decoded->b_mpeg2 = !((p_descriptor->p_data[0] & 0x04) ? true : false);
>    if(    (!p_decoded->b_mpeg2 && (p_descriptor->i_length != 1))
>        || (p_decoded->b_mpeg2 && (p_descriptor->i_length != 3)))
>    {
> --
> 2.0.4
>
> _______________________________________________
> 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/20140814/8dda0e07/attachment.html>


More information about the libdvbpsi-devel mailing list