Skip to content

Commit

Permalink
h264 packetizer: fill profile/level
Browse files Browse the repository at this point in the history
  • Loading branch information
funman committed Jan 23, 2010
1 parent 8ddf6aa commit 5352b60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/packetizer/h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 5352b60

Please sign in to comment.