Commit c006c5fc authored by Tristan Matthews's avatar Tristan Matthews Committed by Ilkka Ollakka

livehttp: remove multiplication by 1

(cherry picked from commit 8f311799715c843c420cfa4e0cee87310a20ef27)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent cbba895c
......@@ -762,8 +762,8 @@ static void Close( vlc_object_t * p_this )
/* Since we are flushing, check the segment change by hand and don't wait
* possible keyframe*/
if( ((float)(output_block->i_length * CLOCK_FREQ / INT64_C(1000000) ) +
(float)(output_block->i_dts - p_sys->i_opendts)) >= p_sys->i_seglenm )
if( ((float) output_block->i_length +
(float) (output_block->i_dts - p_sys->i_opendts)) >= p_sys->i_seglenm )
{
closeCurrentSegment( p_access, p_sys, false );
if( unlikely(openNextFile( p_access, p_sys ) < 0 ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment