Commit f085cfc1 authored by Pierre Ynard's avatar Pierre Ynard

live555: fix test to update NPT

This fixes cases where the stream length is unknown
parent c25938e9
......@@ -1886,7 +1886,8 @@ static void StreamRead( void *p_private, unsigned int i_size,
}
/* Update our global npt value */
if( tk->i_npt > 0 && tk->i_npt > p_sys->i_npt && tk->i_npt < p_sys->i_npt_length)
if( tk->i_npt > 0 && tk->i_npt > p_sys->i_npt &&
( tk->i_npt < p_sys->i_npt_length || p_sys->i_npt_length <= 0 ) )
p_sys->i_npt = tk->i_npt;
if( p_block )
......
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