[vlc-commits] stats: fix dubious cast

Rémi Denis-Courmont git at videolan.org
Sun Jul 30 20:11:39 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 30 21:11:31 2017 +0300| [47c53ad481794ba1ad695d12cbb5b0b94ec56578] | committer: Rémi Denis-Courmont

stats: fix dubious cast

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

 modules/misc/stats.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/misc/stats.c b/modules/misc/stats.c
index 427ec5f3be..2a26c8b285 100644
--- a/modules/misc/stats.c
+++ b/modules/misc/stats.c
@@ -152,7 +152,8 @@ static int Demux( demux_t *p_demux )
     p_block->i_dts = p_block->i_pts =
         date_Increment( &p_sys->pts, kBufferSize );
 
-    msg_Dbg( p_demux, "demux got %d ms offset", (int)(mdate() - *(mtime_t *)p_block->p_buffer) / 1000 );
+    msg_Dbg( p_demux, "demux got %"PRId64" ms offset",
+             (mdate() - *(mtime_t *)p_block->p_buffer) / 1000 );
 
     //es_out_SetPCR( p_demux->out, p_block->i_pts );
 



More information about the vlc-commits mailing list