[vlc-commits] demux: ts: don't start PES without PUSI

Francois Cartegnie git at videolan.org
Thu Jan 23 21:12:53 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 23 18:10:41 2020 +0100| [afe64934d2b5f488dd28c52dd654569e534f1721] | committer: Francois Cartegnie

demux: ts: don't start PES without PUSI

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

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

diff --git a/modules/demux/mpeg/ts_pes.c b/modules/demux/mpeg/ts_pes.c
index 1ab32cad65..55dbd147ad 100644
--- a/modules/demux/mpeg/ts_pes.c
+++ b/modules/demux/mpeg/ts_pes.c
@@ -212,7 +212,7 @@ bool ts_pes_Gather( ts_pes_parse_callback *cb,
     {
         assert( p_pes->gather.i_saved == 0 );
 
-        if( p_pes->gather.p_data == NULL && !b_first_sync_done && p_pkt->i_buffer >= 6 )
+        if( p_pes->gather.p_data == NULL && b_unit_start && !b_first_sync_done && p_pkt->i_buffer >= 6 )
         {
             if( likely(b_aligned_ts_payload) )
             {



More information about the vlc-commits mailing list