[vlc-commits] demux: ts: missing dup counter reset
Francois Cartegnie
git at videolan.org
Tue Jul 24 22:28:37 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jul 24 22:14:03 2018 +0200| [a70aa2a8aba75bdb6d5274553145f5f7fcd3b643] | committer: Francois Cartegnie
demux: ts: missing dup counter reset
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a70aa2a8aba75bdb6d5274553145f5f7fcd3b643
---
modules/demux/mpeg/ts.c | 1 +
modules/demux/mpeg/ts_pid.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index a24a3c1305..cb906be89f 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -1876,6 +1876,7 @@ static void ReadyQueuesPostSeek( demux_t *p_demux )
p_es->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY;
pid->i_cc = 0xff;
+ pid->i_dup = 0;
if( pid->u.p_stream->prepcr.p_head )
{
diff --git a/modules/demux/mpeg/ts_pid.c b/modules/demux/mpeg/ts_pid.c
index 326a5d5790..6d4b88cbd5 100644
--- a/modules/demux/mpeg/ts_pid.c
+++ b/modules/demux/mpeg/ts_pid.c
@@ -172,6 +172,7 @@ static void PIDReset( ts_pid_t *pid )
{
assert(pid->i_refcount == 0);
pid->i_cc = 0xff;
+ pid->i_dup = 0;
pid->i_flags &= ~FLAG_SCRAMBLED;
pid->type = TYPE_FREE;
}
More information about the vlc-commits
mailing list