[vlc-commits] kate: use CLOCK_FREQ

Tristan Matthews git at videolan.org
Tue Jul 1 06:47:44 CEST 2014


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Tue Jul  1 00:39:44 2014 -0400| [bd05cf845539dec9300ab7562b44f1098bb529cc] | committer: Tristan Matthews

kate: use CLOCK_FREQ

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

 modules/codec/kate.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index 89124d4..93cbb3d 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -1170,7 +1170,8 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, kate_packet *p_kp, block_t
     }
 
     p_spu->i_start = p_block->i_pts;
-    p_spu->i_stop = p_block->i_pts + INT64_C(1000000)*ev->duration*p_sys->ki.gps_denominator/p_sys->ki.gps_numerator;
+    p_spu->i_stop = p_block->i_pts + CLOCK_FREQ *
+        ev->duration * p_sys->ki.gps_denominator / p_sys->ki.gps_numerator;
     p_spu->b_ephemer = false;
     p_spu->b_absolute = false;
 



More information about the vlc-commits mailing list