From: Rafaël Carré Date: Sat, 19 Dec 2009 16:57:39 +0000 (+0100) Subject: h264 packetizer: fill profile/level X-Git-Tag: 1.1.0-ff~1021 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5352b6054fea35869be94a81a1169b7d8df7401c;p=vlc h264 packetizer: fill profile/level --- diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c index 886f12ce05..d3f9d33a43 100644 --- a/modules/packetizer/h264.c +++ b/modules/packetizer/h264.c @@ -755,8 +755,10 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag ) bs_init( &s, pb_dec, i_dec ); int i_profile_idc = bs_read( &s, 8 ); - /* Skip constraint_set0123, reserved(4), level(8) */ - bs_skip( &s, 1+1+1+1 + 4 + 8 ); + p_dec->fmt_out.i_profile = i_profile_idc; + /* Skip constraint_set0123, reserved(4) */ + bs_skip( &s, 1+1+1+1 + 4 ); + p_dec->fmt_out.i_level = bs_read( &s, 8 ); /* sps id */ i_sps_id = bs_read_ue( &s ); if( i_sps_id >= SPS_MAX )