[vlc-commits] avformat:demux: our start_time is a vlc_tick_t

Steve Lhomme git at videolan.org
Wed Sep 19 11:58:36 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at 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 );
     }
 



More information about the vlc-commits mailing list