]> git.sesse.net Git - vlc/commitdiff
theora: use CLOCK_FREQ
authorTristan Matthews <le.businessman@gmail.com>
Sat, 28 Jun 2014 01:03:09 +0000 (21:03 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Sat, 28 Jun 2014 01:03:09 +0000 (21:03 -0400)
modules/codec/theora.c

index b6831aebaca66df4573ab8d733d29b151abb9d8f..89f1f7fd98ff0fd9cac84d2b7563149d93f68432 100644 (file)
@@ -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;