[vlc-commits] modules: use vlc_tick_t casting

Steve Lhomme git at videolan.org
Thu Sep 20 17:14:17 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 20 16:53:27 2018 +0200| [f8652b218116187666c46043bc62c51cb6a8dbef] | committer: Steve Lhomme

modules: use vlc_tick_t casting

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

 modules/access/vdr.c | 2 +-
 modules/demux/vc1.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 66376d2e18..b86337e762 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -816,7 +816,7 @@ static void ImportMarks( stream_t *p_access )
         return;
     }
     p_marks->psz_name = strdup( _("VDR Cut Marks") );
-    p_marks->i_length = i_frame_count * (int64_t)( CLOCK_FREQ / p_sys->fps );
+    p_marks->i_length = i_frame_count * (vlc_tick_t)( CLOCK_FREQ / p_sys->fps );
 
     uint64_t *offsetv = NULL;
 
diff --git a/modules/demux/vc1.c b/modules/demux/vc1.c
index cf4fcb14d4..e84f1d8d39 100644
--- a/modules/demux/vc1.c
+++ b/modules/demux/vc1.c
@@ -184,7 +184,7 @@ static int Demux( demux_t *p_demux)
                     p_sys->p_packetizer->fmt_out.video.i_frame_rate_base,
                     p_sys->p_packetizer->fmt_out.video.i_frame_rate );
             else if( p_sys->f_fps > 0.001f )
-                p_sys->i_dts += (int64_t)((float) CLOCK_FREQ / p_sys->f_fps);
+                p_sys->i_dts += (vlc_tick_t)((float) CLOCK_FREQ / p_sys->f_fps);
             else
                 p_sys->i_dts += VLC_TICK_FROM_MS(40);
         }



More information about the vlc-commits mailing list