[vlc-commits] demux: ts: tag AU_END on low_delay

Francois Cartegnie git at videolan.org
Thu Mar 7 17:29:33 CET 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 28 14:29:27 2019 +0100| [880e738f6032b0a93c72180f0a7eb1e456df2077] | committer: Francois Cartegnie

demux: ts: tag AU_END on low_delay

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

 modules/demux/mpeg/ts.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 0b83222fb1..1f9d9d4fac 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -1400,12 +1400,16 @@ static block_t * ConvertPESBlock( demux_t *p_demux, ts_es_t *p_es,
  ****************************************************************************/
 static void SendDataChain( demux_t *p_demux, ts_es_t *p_es, block_t *p_chain )
 {
+    bool b_lowdelay = var_InheritBool(p_demux, "low-delay");
     while( p_chain )
     {
         block_t *p_block = p_chain;
         p_chain = p_block->p_next;
         p_block->p_next = NULL;
 
+        if( b_lowdelay )
+            p_block->i_flags |= BLOCK_FLAG_AU_END;
+
         ts_es_t *p_es_send = p_es;
         if( p_es_send->i_next_block_flags )
         {



More information about the vlc-commits mailing list