[vlc-commits] demux: vc1: use CLOCK_FREQ
Tristan Matthews
git at videolan.org
Thu Jul 24 16:48:58 CEST 2014
vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Thu Jul 24 10:47:23 2014 -0400| [b7eac9ff9246f1d5a4b4c6f50e67f5c436c643bd] | committer: Tristan Matthews
demux: vc1: use CLOCK_FREQ
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7eac9ff9246f1d5a4b4c6f50e67f5c436c643bd
---
modules/demux/vc1.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/vc1.c b/modules/demux/vc1.c
index 9360902..69c8af6 100644
--- a/modules/demux/vc1.c
+++ b/modules/demux/vc1.c
@@ -173,13 +173,13 @@ static int Demux( demux_t *p_demux)
if( p_sys->p_packetizer->fmt_out.video.i_frame_rate > 0 &&
p_sys->p_packetizer->fmt_out.video.i_frame_rate_base > 0 )
- p_sys->i_dts += INT64_C(1000000) *
+ p_sys->i_dts += CLOCK_FREQ *
p_sys->p_packetizer->fmt_out.video.i_frame_rate_base /
p_sys->p_packetizer->fmt_out.video.i_frame_rate;
else if( p_sys->f_fps > 0.001 )
- p_sys->i_dts += (int64_t)((double)1000000.0 / p_sys->f_fps);
+ p_sys->i_dts += (int64_t)((double) CLOCK_FREQ / p_sys->f_fps);
else
- p_sys->i_dts += INT64_C(1000000) / 25;
+ p_sys->i_dts += CLOCK_FREQ / 25;
}
}
return 1;
More information about the vlc-commits
mailing list