[vlc-commits] use CLOCK_FREQ

Ilkka Ollakka git at videolan.org
Fri Mar 21 10:53:59 CET 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Mar 15 17:16:25 2014 +0200| [9d4539fc653c6b2996eaaf9de0964a51c73ff0fb] | committer: Ilkka Ollakka

use CLOCK_FREQ

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

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

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index 2020cfb..038366c 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -389,7 +389,7 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
         if( b_eos )
             p_pic->i_flags |= BLOCK_FLAG_END_OF_SEQUENCE;
 
-        i_duration = (mtime_t)( 1000000 * p_sys->i_frame_rate_base /
+        i_duration = (mtime_t)( CLOCK_FREQ * p_sys->i_frame_rate_base /
                                 p_sys->i_frame_rate );
 
         if( !p_sys->b_seq_progressive && p_sys->i_picture_structure != 0x03 )



More information about the vlc-commits mailing list