]> git.sesse.net Git - vlc/commitdiff
h264 packetizer: fill profile/level
authorRafaël Carré <rafael.carre@gmail.com>
Sat, 19 Dec 2009 16:57:39 +0000 (17:57 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Sat, 23 Jan 2010 15:44:47 +0000 (16:44 +0100)
modules/packetizer/h264.c

index 886f12ce052084a3e240e1b07e629fcaaba92316..d3f9d33a4359b14397c87cd5b12c9801a011d5ac 100644 (file)
@@ -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 )