[vlc-devel] [PATCH 3/3] packetizer: h264: fill colour_desc if present

Francois Cartegnie fcvlcdev at free.fr
Sat Apr 16 15:07:02 CEST 2016


Le 16/04/2016 14:58, Thomas Guillem a écrit :
>              /* colour desc */
>              i_tmp = bs_read( p_bs, 1 );
>              if ( i_tmp )
> -                bs_read( p_bs, 24 );
> +            {
> +                p_sps->vui.colour_desc.b_valid = true;

There's no such "Valid" state.
It's either present or inferred if you plan to use them.
See VUI semantics.

> +                p_sps->vui.colour_desc.i_colour_primaries = bs_read( p_bs, 8 );
> +                p_sps->vui.colour_desc.i_transfer_characteristics = bs_read( p_bs, 8 );
> +                p_sps->vui.colour_desc.i_matrix_coefficients = bs_read( p_bs, 8 );
> +            }


Francois


More information about the vlc-devel mailing list