Commit 342e509e authored by Pierre Ynard's avatar Pierre Ynard

live555: fix test to update NPT

This fixes cases where the stream length is unknown
(cherry picked from commit f085cfc1c95b922e3c750ee93ec58c3f2d5f7456)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent 29fbfede
......@@ -1819,7 +1819,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