vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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 );
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to