[vlc-commits] demux: nuv: fix hardcoded CLOCK_FREQ equivalent

Steve Lhomme git at videolan.org
Wed Sep 19 15:46:12 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun  1 13:03:08 2018 +0200| [6e8ccf9be1f4249aa314c62ad6db577865f27562] | committer: Steve Lhomme

demux: nuv: fix hardcoded CLOCK_FREQ equivalent

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

 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 87701f1eb1..2590c347b9 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -848,7 +848,7 @@ static int SeekTableLoad( demux_t *p_demux, demux_sys_t *p_sys )
             kfa_entry_id++;
         }
 
-        i_time = (double)( (int64_t)frame * 1000000 ) / p_sys->hdr.d_fps;
+        i_time = (double)( (vlc_tick_t)frame * CLOCK_FREQ ) / p_sys->hdr.d_fps;
         i_offset = GetQWLE( p_seek_table + j * 12 );
 
         if( i_offset == 0 && i_time != 0 )



More information about the vlc-commits mailing list