Commit 3d61f5d5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

nsv: fix flawed logic (fixes #19213)

parent b26c856b
......@@ -442,7 +442,7 @@ static int ReSynch( demux_t *p_demux )
|| !memcmp( p_peek, "NSVs", 4 ) )
{
if( i_skip > 0
&& vlc_stream_Read( p_demux->s, NULL, i_skip ) )
&& vlc_stream_Read( p_demux->s, NULL, i_skip ) < i_skip )
return VLC_EGENERIC;
return VLC_SUCCESS;
}
......
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