[vlc-commits] demux:asf: replace hardcoded CLOCK_FREQ equivalent

Steve Lhomme git at videolan.org
Thu Jun 7 11:53:40 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun  7 11:21:03 2018 +0200| [a0ebbe07d9a11fadb802ffd611d6cb2e02a6edb7] | committer: Steve Lhomme

demux:asf: replace hardcoded CLOCK_FREQ equivalent

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

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

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index af77efc1c3..fb0100cf13 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -1255,7 +1255,7 @@ static int DemuxInit( demux_t *p_demux )
 
         if( p_sys->i_length > 0 )
         {
-            p_sys->i_bitrate = 8 * i_size * 1000000 / p_sys->i_length;
+            p_sys->i_bitrate = 8 * i_size * CLOCK_FREQ / p_sys->i_length;
         }
     }
 



More information about the vlc-commits mailing list