[vlc-commits] demux: vc1: feed packetizer with next dts

Francois Cartegnie git at videolan.org
Sat Oct 19 14:03:09 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Oct 18 12:37:57 2019 +0200| [74a6fd0b04342d169c6f1e50e10892fcc9f775f1] | committer: Francois Cartegnie

demux: vc1: feed packetizer with next dts

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74a6fd0b04342d169c6f1e50e10892fcc9f775f1
---

 modules/demux/vc1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/vc1.c b/modules/demux/vc1.c
index efc60a7a6b..6cdbf40993 100644
--- a/modules/demux/vc1.c
+++ b/modules/demux/vc1.c
@@ -150,8 +150,8 @@ static int Demux( demux_t *p_demux)
     else
     {
         /*  */
-        p_block_in->i_dts = VLC_TICK_0;
-        p_block_in->i_pts = VLC_TICK_0;
+        p_block_in->i_dts = p_sys->i_dts != VLC_TICK_INVALID ? p_sys->i_dts : VLC_TICK_0;
+        p_block_in->i_pts = p_block_in->i_dts;
     }
 
     while( (p_block_out = p_sys->p_packetizer->pf_packetize( p_sys->p_packetizer,



More information about the vlc-commits mailing list