vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Wed Sep 19 11:25:19 2018 +0200| [9c827e62bcbf537e750533ecd14aea6290d05477] | committer: Steve Lhomme
avformat:demux: our start_time is a vlc_tick_t > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c827e62bcbf537e750533ecd14aea6290d05477 --- modules/demux/avformat/demux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c index f4a84cb20b..d92f2c2107 100644 --- a/modules/demux/avformat/demux.c +++ b/modules/demux/avformat/demux.c @@ -251,7 +251,7 @@ int avformat_OpenDemux( vlc_object_t *p_this ) demux_t *p_demux = (demux_t*)p_this; demux_sys_t *p_sys; AVInputFormat *fmt = NULL; - int64_t i_start_time = -1; + vlc_tick_t i_start_time = VLC_TICK_INVALID; bool b_can_seek; const char *psz_url; int error; @@ -705,7 +705,7 @@ int avformat_OpenDemux( vlc_object_t *p_this ) s->i_time_offset = p_sys->ic->chapters[i]->start * CLOCK_FREQ * p_sys->ic->chapters[i]->time_base.num / p_sys->ic->chapters[i]->time_base.den - - (i_start_time != -1 ? i_start_time : 0 ); + (i_start_time != VLC_TICK_INVALID ? i_start_time : 0 ); TAB_APPEND( p_sys->p_title->i_seekpoint, p_sys->p_title->seekpoint, s ); } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits