vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jul 3 14:08:46 2018 +0200| [8229e859a7053269217c3a53b8cf12d4ee689219] | committer: Steve Lhomme
demux:avi: replace hardcoded CLOCK_FREQ fractions/multiples by VLC_TICK macros > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8229e859a7053269217c3a53b8cf12d4ee689219 --- modules/demux/avi/avi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c index b2a79adbc2..6396205bc2 100644 --- a/modules/demux/avi/avi.c +++ b/modules/demux/avi/avi.c @@ -1089,7 +1089,7 @@ static int Demux_Seekable( demux_t *p_demux ) { toread[i_track].i_toread = AVI_PTSToByte( tk, i_dpts ); } - else if ( i_dpts > -2 * CLOCK_FREQ ) /* don't send a too early dts (low fps video) */ + else if ( i_dpts > VLC_TICK_FROM_SEC(-2) ) /* don't send a too early dts (low fps video) */ { toread[i_track].i_toread = AVI_PTSToChunk( tk, i_dpts ); } @@ -1456,7 +1456,7 @@ static int Demux_UnSeekable( demux_t *p_demux ) /* check for time */ if( p_stream == p_stream_master || llabs( AVI_GetPTS( p_stream ) - - AVI_GetPTS( p_stream_master ) )< 2 * CLOCK_FREQ ) + AVI_GetPTS( p_stream_master ) )< VLC_TICK_FROM_SEC(2) ) { /* load it and send to decoder */ block_t *p_frame = ReadFrame( p_demux, p_stream, 8, avi_pk.i_size + 8 ) ; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
