mpeg: replace another 1000000 with CLOCK_FREQ
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 4 May 2018 08:34:08 +0000 (11:34 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 4 May 2018 08:34:08 +0000 (11:34 +0300)
modules/demux/mpeg/es.c

index 9f5e4d2..7d2e01e 100644 (file)
@@ -351,7 +351,8 @@ static int Demux( demux_t *p_demux )
         }
         /* Re-estimate bitrate */
         if( p_sys->b_estimate_bitrate && p_sys->i_pts > (CLOCK_FREQ/2) )
-            p_sys->i_bitrate_avg = 8*1000000*p_sys->i_bytes/(p_sys->i_pts-1);
+            p_sys->i_bitrate_avg = 8 * CLOCK_FREQ * p_sys->i_bytes
+                                   / (p_sys->i_pts - 1);
         p_sys->i_bytes += p_block_out->i_buffer;