[vlc-commits] packetizer: hevc: reset pts/dts xps

Francois Cartegnie git at videolan.org
Thu Dec 24 01:45:16 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 23 20:33:05 2015 +0100| [64f418a0b77069d5f625e36719a92d7709b43cea] | committer: Francois Cartegnie

packetizer: hevc: reset pts/dts xps

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

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

diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index 0ada5ff..b497000 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -278,6 +278,8 @@ static bool InsertXPS(decoder_t *p_dec, uint8_t i_nal_type, uint8_t i_id,
     pp_xps[i_id] = block_Duplicate(p_nalb);
     if(pp_xps[i_id])
     {
+        pp_xps[i_id]->i_dts = VLC_TS_INVALID;
+        pp_xps[i_id]->i_pts = VLC_TS_INVALID;
         const uint8_t *p_buffer = p_nalb->p_buffer;
         size_t i_buffer = p_nalb->i_buffer;
         if( hxxx_strip_AnnexB_startcode( &p_buffer, &i_buffer ) )



More information about the vlc-commits mailing list