]> git.sesse.net Git - vlc/commitdiff
* modules/packetizer/h264.c: date SPS and PPS blocks built from the codec extradata.
authorGildas Bazin <gbazin@videolan.org>
Tue, 13 Sep 2005 17:48:32 +0000 (17:48 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 13 Sep 2005 17:48:32 +0000 (17:48 +0000)
modules/packetizer/h264.c

index a90b65b134cdd83bc5ba424d69d4e1c0a123e353..f56f189f6e672c25828ef5995464126fe248e499 100644 (file)
@@ -182,6 +182,7 @@ static int Open( vlc_object_t *p_this )
             int i_length = GetWBE( p );
             block_t *p_sps = nal_get_annexeb( p_dec, p + 2, i_length );
 
+            p_sps->i_pts = p_sps->i_dts = mdate();
             ParseNALBlock( p_dec, p_sps );
             p += 2 + i_length;
         }
@@ -192,6 +193,7 @@ static int Open( vlc_object_t *p_this )
             int i_length = GetWBE( p );
             block_t *p_pps = nal_get_annexeb( p_dec, p + 2, i_length );
 
+            p_pps->i_pts = p_pps->i_dts = mdate();
             ParseNALBlock( p_dec, p_pps );
             p += 2 + i_length;
         }