[vlc-commits] kate: use CLOCK_FREQ

Tristan Matthews git at videolan.org
Wed Jul 2 21:17:28 CEST 2014


vlc/vlc-2.2 | branch: master | Tristan Matthews <le.businessman at gmail.com> | Tue Jul  1 00:39:44 2014 -0400| [f465dc6fc2f8b4211128db1bb46028b6829f7007] | committer: Felix Paul Kühne

kate: use CLOCK_FREQ

(cherry picked from commit bd05cf845539dec9300ab7562b44f1098bb529cc)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

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

 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