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

Steve Lhomme git at videolan.org
Wed Sep 19 13:23:55 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun  1 10:26:38 2018 +0200| [1104dd40860a3311745d16f8a0ef46411b55aef9] | committer: Steve Lhomme

demux: nsv: fix hardcoded CLOCK_FREQ equivalent

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

 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 4ba06722b8..57ab658a28 100644
--- a/modules/demux/nsv.c
+++ b/modules/demux/nsv.c
@@ -615,7 +615,7 @@ static int ReadNSVs( demux_t *p_demux )
     else if( header[16] != 0 )
     {
         /* Integer frame rate */
-        p_sys->i_pcr_inc = 1000000 / header[16];
+        p_sys->i_pcr_inc = CLOCK_FREQ / header[16];
     }
     else
     {



More information about the vlc-commits mailing list