From 29a8ff8d07fd92ee0e2c0622c20981a9dea06b14 Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Tue, 13 Sep 2005 17:48:32 +0000 Subject: [PATCH] * modules/packetizer/h264.c: date SPS and PPS blocks built from the codec extradata. --- modules/packetizer/h264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c index a90b65b134..f56f189f6e 100644 --- a/modules/packetizer/h264.c +++ b/modules/packetizer/h264.c @@ -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; } -- 2.39.2