[vlc-commits] demux: ts: add broken streams warning
Francois Cartegnie
git at videolan.org
Mon Jan 19 21:39:09 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 19 13:17:47 2015 +0100| [05af1f492aac1d59239d8d480268c9cf5aae14bb] | committer: Francois Cartegnie
demux: ts: add broken streams warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05af1f492aac1d59239d8d480268c9cf5aae14bb
---
modules/demux/ts.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index d7b8488..ecd3462 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1933,6 +1933,11 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR,
pid->i_owner_number, p_block->i_dts);
+ if( !p_sys->b_disable_pcr && p_block->i_dts > VLC_TS_INVALID &&
+ p_block->i_dts < (VLC_TS_0 + p_sys->i_current_pcr * 100 / 9) )
+ msg_Warn( p_demux, "Broken stream: pid %d sends packets with dts %"PRId64"us later than pcr",
+ pid->i_pid, (p_sys->i_current_pcr * 100 / 9) - p_block->i_dts + VLC_TS_0 );
+
es_out_Send( p_demux->out, pid->es->id, p_block );
p_block = p_next;
More information about the vlc-commits
mailing list