vlc | branch: master | Steve Lhomme <[email protected]> | 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; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
