[vlc-commits] theora: use CLOCK_FREQ

Tristan Matthews git at videolan.org
Sat Jun 28 03:05:29 CEST 2014


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Fri Jun 27 21:03:09 2014 -0400| [079dc8f6ea1b22ed3cbee1798d61b1f500b4d7f7] | committer: Tristan Matthews

theora: use CLOCK_FREQ

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

 modules/codec/theora.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/theora.c b/modules/codec/theora.c
index b6831ae..89f1f7f 100644
--- a/modules/codec/theora.c
+++ b/modules/codec/theora.c
@@ -458,7 +458,7 @@ static void *ProcessPacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
     }
 
     /* Date management */
-    p_sys->i_pts += ( INT64_C(1000000) * p_sys->ti.fps_denominator /
+    p_sys->i_pts += ( CLOCK_FREQ * p_sys->ti.fps_denominator /
                       p_sys->ti.fps_numerator ); /* 1 frame per packet */
 
     return p_buf;



More information about the vlc-commits mailing list