[vlc-commits] packetizer: dts: notify discontinuities on timebase change

Francois Cartegnie git at videolan.org
Wed Oct 26 19:07:04 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 26 15:38:50 2016 +0200| [4e18fe02108f263442ba19e7bb3ff557c5376556] | committer: Francois Cartegnie

packetizer: dts: notify discontinuities on timebase change

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

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

diff --git a/modules/packetizer/dts.c b/modules/packetizer/dts.c
index f506ed7..f4a0801 100644
--- a/modules/packetizer/dts.c
+++ b/modules/packetizer/dts.c
@@ -183,6 +183,8 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
             if( p_sys->i_pts > VLC_TS_INVALID &&
                 p_sys->i_pts != date_Get( &p_sys->end_date ) )
             {
+                if( date_Get( &p_sys->end_date ) != VLC_TS_INVALID )
+                    p_sys->b_discontinuity = true;
                 date_Set( &p_sys->end_date, p_sys->i_pts );
             }
             p_sys->i_state = STATE_HEADER;



More information about the vlc-commits mailing list