Commit 3e775f90 authored by Thomas Guillem's avatar Thomas Guillem

packetizer: h264: fill colorimetry

parent dcc9ffd3
......@@ -765,6 +765,13 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
p_dec->fmt_out.video.i_frame_rate_base = p_sps->vui.i_num_units_in_tick;
p_dec->fmt_out.video.i_frame_rate = p_sps->vui.i_time_scale;
}
p_dec->fmt_out.video.primaries =
hxxx_colour_primaries_to_vlc( p_sps->vui.colour.i_colour_primaries );
p_dec->fmt_out.video.transfer =
hxxx_transfer_characteristics_to_vlc( p_sps->vui.colour.i_transfer_characteristics );
p_dec->fmt_out.video.space =
hxxx_matrix_coeffs_to_vlc( p_sps->vui.colour.i_matrix_coefficients );
p_dec->fmt_out.video.b_color_range_full = p_sps->vui.colour.b_full_range;
}
/* We have a new SPS */
if( !p_sys->b_sps )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment