[vlc-commits] demux:mpeg: transform vlc_tick_t value to seconds with SEC_FROM_VLC_TICK

Steve Lhomme git at videolan.org
Tue Sep 18 08:55:05 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May 31 15:19:26 2018 +0200| [83fb006d134915d12a3616d7ab276499b9f62972] | committer: Steve Lhomme

demux:mpeg: transform vlc_tick_t value to seconds with SEC_FROM_VLC_TICK

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

 modules/demux/mpeg/ps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index 1bce536c89..fdf663bbd1 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -377,7 +377,7 @@ static bool FindLength( demux_t *p_demux )
             {
                 p_sys->i_length = i_length;
                 p_sys->i_time_track_index = i;
-                msg_Dbg( p_demux, "we found a length of: %"PRId64 "s", p_sys->i_length / CLOCK_FREQ );
+                msg_Dbg( p_demux, "we found a length of: %"PRId64 "s", SEC_FROM_VLC_TICK(p_sys->i_length) );
             }
         }
     }



More information about the vlc-commits mailing list