[vlc-commits] packetizer: avparser: properly propagate flags

Francois Cartegnie git at videolan.org
Tue Apr 6 18:18:42 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr  6 18:16:37 2021 +0200| [0ddedd363c23347d4474563897eec1ce0db722ba] | committer: Francois Cartegnie

packetizer: avparser: properly propagate flags

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

 modules/packetizer/avparser.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/packetizer/avparser.c b/modules/packetizer/avparser.c
index d498ff6eaa..613e657993 100644
--- a/modules/packetizer/avparser.c
+++ b/modules/packetizer/avparser.c
@@ -188,6 +188,11 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block )
     if( unlikely ( !p_ret ) )
         goto out;
 
+    p_ret->i_flags = p_block->i_flags;
+
+    if( p_block->i_flags & BLOCK_FLAG_DISCONTINUITY )
+        p_block->i_flags &= ~BLOCK_FLAG_DISCONTINUITY;
+
     memcpy( p_ret->p_buffer, p_outdata, i_outlen );
     p_ret->i_pts = p_block->i_pts;
     p_ret->i_dts = p_block->i_dts;



More information about the vlc-commits mailing list