vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Fri Jun  1 10:20:19 
2018 +0200| [59ebea10c67e5f2e29ce96e69643e3f53d205046] | committer: Steve Lhomme

demux: nsv: the fps calculation depends on CLOCK_FREQ

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

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

diff --git a/modules/demux/nsv.c b/modules/demux/nsv.c
index 22d3e4e1e0..4ba06722b8 100644
--- a/modules/demux/nsv.c
+++ b/modules/demux/nsv.c
@@ -403,7 +403,7 @@ static int Control( demux_t *p_demux, int i_query, va_list 
args )
 #endif
         case DEMUX_GET_FPS:
             pf = va_arg( args, double * );
-            *pf = (double)1000000.0 / (double)p_sys->i_pcr_inc;
+            *pf = (double)CLOCK_FREQ / (double)p_sys->i_pcr_inc;
             return VLC_SUCCESS;
 
         case DEMUX_CAN_RECORD:

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to