[vlc-commits] demux: h26x: set first packet dts
Francois Cartegnie
git at videolan.org
Tue Apr 4 14:17:28 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr 3 16:09:29 2017 +0200| [b935a99eda70ef2ac8aa17a76a384ab77184232f] | committer: Francois Cartegnie
demux: h26x: set first packet dts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b935a99eda70ef2ac8aa17a76a384ab77184232f
---
modules/demux/mpeg/h26x.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/demux/mpeg/h26x.c b/modules/demux/mpeg/h26x.c
index ff2f3b7..04e71d5 100644
--- a/modules/demux/mpeg/h26x.c
+++ b/modules/demux/mpeg/h26x.c
@@ -415,6 +415,10 @@ static int Demux( demux_t *p_demux)
{
b_eof = true;
}
+ else
+ {
+ p_block_in->i_dts = date_Get( &p_sys->dts );
+ }
while( (p_block_out = p_sys->p_packetizer->pf_packetize( p_sys->p_packetizer,
p_block_in ? &p_block_in : NULL )) )
More information about the vlc-commits
mailing list