]> git.sesse.net Git - vlc/commitdiff
demux: avformat: use CLOCK_FREQ
authorTristan Matthews <le.businessman@gmail.com>
Fri, 10 Jan 2014 14:11:29 +0000 (09:11 -0500)
committerTristan Matthews <le.businessman@gmail.com>
Fri, 10 Jan 2014 14:11:29 +0000 (09:11 -0500)
modules/demux/avformat/mux.c

index f451eae3d54ea38a034a971f128d5271906ade30..54aadedcb657eff01a170c29d2c34265cd969814 100644 (file)
@@ -291,14 +291,14 @@ static int MuxBlock( sout_mux_t *p_mux, sout_input_t *p_input )
 
     if( p_data->i_pts > 0 )
         pkt.pts = p_data->i_pts * p_stream->time_base.den /
-            INT64_C(1000000) / p_stream->time_base.num;
+            CLOCK_FREQ / p_stream->time_base.num;
     if( p_data->i_dts > 0 )
         pkt.dts = p_data->i_dts * p_stream->time_base.den /
-            INT64_C(1000000) / p_stream->time_base.num;
+            CLOCK_FREQ / p_stream->time_base.num;
 
     /* this is another hack to prevent libavformat from triggering the "non monotone timestamps" check in avformat/utils.c */
     p_stream->cur_dts = ( p_data->i_dts * p_stream->time_base.den /
-            INT64_C(1000000) / p_stream->time_base.num ) - 1;
+            CLOCK_FREQ / p_stream->time_base.num ) - 1;
 
     if( av_write_frame( p_sys->oc, &pkt ) < 0 )
     {