[vlc-commits] nuv: base the duration on CLOCK_FREQ

Steve Lhomme git at videolan.org
Sat May 5 19:41:15 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 16:06:19 2018 +0200| [8a0f9aa8d519b7dea6b6d35a9d76171bce81e8f9] | committer: Rémi Denis-Courmont

nuv: base the duration on CLOCK_FREQ

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

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

diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index a14f91a91f..878ffa1ff8 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -868,7 +868,7 @@ static int SeekTableLoad( demux_t *p_demux, demux_sys_t *p_sys )
 
     p_sys->b_index = true;
 
-    p_sys->i_total_length = p_sys->i_total_frames * 1000000 / p_sys->hdr.d_fps;
+    p_sys->i_total_length = p_sys->i_total_frames * CLOCK_FREQ / p_sys->hdr.d_fps;
 
     msg_Dbg( p_demux, "index table loaded (%d elements)", i_seek_elements );
 



More information about the vlc-commits mailing list