vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Thu Apr 17 13:58:35 2014 +0200| [0438b6df81338388a13cb29ef0a3df707ae97741] | committer: Francois Cartegnie
core: decoder_synchro: fix integer overflow (cid #1048882) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0438b6df81338388a13cb29ef0a3df707ae97741 --- src/input/decoder_synchro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/decoder_synchro.c b/src/input/decoder_synchro.c index 576d06a..f396661 100644 --- a/src/input/decoder_synchro.c +++ b/src/input/decoder_synchro.c @@ -225,7 +225,7 @@ bool decoder_SynchroChoose( decoder_synchro_t * p_synchro, int i_coding_type, i_current_rate = decoder_GetDisplayRate( p_synchro->p_dec ); now = mdate(); - period = 1000000 * 1001 / p_synchro->i_frame_rate + period = CLOCK_FREQ * 1001 / p_synchro->i_frame_rate * i_current_rate / INPUT_RATE_DEFAULT; p_synchro->i_render_time = i_render_time; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits