[vlc-commits] packetizer: mpegvideo: clear timestamp only on output

Francois Cartegnie git at videolan.org
Fri Sep 27 21:41:35 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Sep 27 21:34:03 2019 +0200| [d772cbd0f85b0b47b99be7333a869f23781d580c] | committer: Francois Cartegnie

packetizer: mpegvideo: clear timestamp only on output

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

 modules/packetizer/mpegvideo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index 966fc28e46..d5ed7bb443 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -594,6 +594,8 @@ static block_t *PacketizeParse( void *p_private, bool *pb_ts_used, block_t *p_bl
         p_block->i_flags |= p_sys->i_next_block_flags;
         p_sys->i_next_block_flags = 0;
     }
+    else *pb_ts_used = false; /* only clear up if output */
+
     return p_block;
 }
 



More information about the vlc-commits mailing list