[vlc-commits] packetizer: a52: flag discontinuity on timebase change
Francois Cartegnie
git at videolan.org
Wed Oct 26 19:07:03 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 26 14:42:51 2016 +0200| [5bff0f42104e21ff503d13b50b45660938af56f0] | committer: Francois Cartegnie
packetizer: a52: flag discontinuity on timebase change
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5bff0f42104e21ff503d13b50b45660938af56f0
---
modules/packetizer/a52.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/packetizer/a52.c b/modules/packetizer/a52.c
index 12d3a51..2d67ced 100644
--- a/modules/packetizer/a52.c
+++ b/modules/packetizer/a52.c
@@ -181,6 +181,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_discontuinity = 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