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

Francois Cartegnie git at videolan.org
Wed Apr 7 08:10:58 UTC 2021


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr  6 18:16:37 2021 +0200| [5cd64a36c55b3564cf5e63d899f70843ae0041f9] | committer: Francois Cartegnie

packetizer: avparser: properly propagate flags

(cherry picked from commit 0ddedd363c23347d4474563897eec1ce0db722ba)

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

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

diff --git a/modules/packetizer/avparser.c b/modules/packetizer/avparser.c
index 1dfa9dffaf..033c71ab29 100644
--- a/modules/packetizer/avparser.c
+++ b/modules/packetizer/avparser.c
@@ -187,6 +187,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