vlc | branch: master | Steve Lhomme <[email protected]> | Mon May 7 16:57:45 2018 +0200| [7bdefad63cd6364245ed17c682157056c1e951b9] | committer: Steve Lhomme
demux:mpeg: transform vlc_tick_t value to milliseconds with MS_FROM_VLC_TICK > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7bdefad63cd6364245ed17c682157056c1e951b9 --- modules/demux/mpeg/ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c index 198ef364cc..eee0091553 100644 --- a/modules/demux/mpeg/ps.c +++ b/modules/demux/mpeg/ps.c @@ -584,7 +584,7 @@ static int Demux( demux_t *p_demux ) tk->i_first_pts != VLC_TICK_INVALID && tk->i_first_pts - p_sys->i_pack_scr > VLC_TICK_FROM_SEC(2)) { msg_Warn( p_demux, "Incorrect SCR timing offset by of %"PRId64 "ms, disabling", - tk->i_first_pts - p_sys->i_pack_scr / 1000 ); + MS_FROM_VLC_TICK(tk->i_first_pts - p_sys->i_pack_scr) ); p_sys->b_bad_scr = true; /* Disable Offset SCR */ p_sys->i_first_scr = -1; } @@ -601,7 +601,7 @@ static int Demux( demux_t *p_demux ) p_sys->i_pack_scr > p_pkt->i_pts + VLC_TICK_FROM_MS(250) ) { msg_Warn( p_demux, "Incorrect SCR timing in advance of %" PRId64 "ms, disabling", - p_sys->i_pack_scr - p_pkt->i_pts / 1000 ); + MS_FROM_VLC_TICK(p_sys->i_pack_scr - p_pkt->i_pts) ); p_sys->b_bad_scr = true; p_sys->i_first_scr = -1; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
