[vlc-commits] demux:mpeg: use VLC_TICK_FROM_SEC for the fps to vlc_tick_t conversion

Steve Lhomme git at videolan.org
Tue Sep 18 08:55:06 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun  6 16:09:02 2018 +0200| [a71defdb6b898f0a58f29fc3cd0e4589d56e5fb7] | committer: Steve Lhomme

demux:mpeg: use VLC_TICK_FROM_SEC for the fps to vlc_tick_t conversion

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

 modules/demux/mpeg/es.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index 90980d9226..c0df825ad1 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -334,7 +334,7 @@ static int Demux( demux_t *p_demux )
         {
             if( p_block_out->i_pts == VLC_TICK_INVALID &&
                 p_block_out->i_dts == VLC_TICK_INVALID )
-                p_block_out->i_dts = VLC_TICK_0 + p_sys->i_pts + CLOCK_FREQ / p_sys->f_fps;
+                p_block_out->i_dts = VLC_TICK_0 + p_sys->i_pts + VLC_TICK_FROM_SEC(1) / p_sys->f_fps;
             if( p_block_out->i_dts != VLC_TICK_INVALID )
                 p_sys->i_pts = p_block_out->i_dts - VLC_TICK_0;
         }



More information about the vlc-commits mailing list