[vlc-commits] demux: ts: don't send TS_INVALID with no-trust-pcr

Francois Cartegnie git at videolan.org
Thu Dec 18 22:39:58 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 17 18:20:42 2014 +0100| [9cbad0620190728e14b1fd9585b668e92dfc2edf] | committer: Francois Cartegnie

demux: ts: don't send TS_INVALID with no-trust-pcr

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

 modules/demux/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 65c0acd..c99ee2d 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1916,7 +1916,7 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
                         block_Duplicate( p_block ) );
             }
 
-            if (!p_sys->b_trust_pcr)
+            if (!p_sys->b_trust_pcr && p_block->i_pts > VLC_TS_INVALID )
                 es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR,
                         pid->i_owner_number, p_block->i_pts);
 



More information about the vlc-commits mailing list