]> git.sesse.net Git - vlc/commitdiff
use CLOCK_FREQ
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 15 Mar 2014 15:16:25 +0000 (17:16 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 21 Mar 2014 09:51:29 +0000 (11:51 +0200)
modules/packetizer/mpegvideo.c

index 2020cfb0d41ecc86ff78eedd8d961762296f8191..038366cbbe1a497835b68af574d33be9d8b689b1 100644 (file)
@@ -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 )