diff --git a/src/input/input_clock.c b/src/input/input_clock.c index 1a7ef4357967fbe9156ded55fb714730b50c32c0..a0b462d285e0821e7e1d13e03b3d4470d741c5d1 100644 --- a/src/input/input_clock.c +++ b/src/input/input_clock.c @@ -2,7 +2,7 @@ * input_clock.c: Clock/System date convertions, stream management ***************************************************************************** * Copyright (C) 1999, 2000 VideoLAN - * $Id: input_clock.c,v 1.7 2001/02/22 17:00:20 massiot Exp $ + * $Id: input_clock.c,v 1.8 2001/03/14 00:40:24 massiot Exp $ * * Authors: Christophe Massiot * @@ -89,12 +89,12 @@ static mtime_t ClockToSysdate( input_thread_t * p_input, if( p_pgrm->i_synchro_state == SYNCHRO_OK ) { - i_sysdate = (i_clock - p_pgrm->cr_ref) - * p_input->stream.control.i_rate - * 300 - / 27 - / DEFAULT_RATE - + p_pgrm->sysdate_ref; + i_sysdate = (mtime_t)(i_clock - p_pgrm->cr_ref) + * (mtime_t)p_input->stream.control.i_rate + * (mtime_t)300 + / (mtime_t)27 + / (mtime_t)DEFAULT_RATE + + (mtime_t)p_pgrm->sysdate_ref; } return( i_sysdate );