[vlc-commits] nsv: fix flawed logic (fixes #19213)
Rémi Denis-Courmont
git at videolan.org
Mon Dec 4 17:58:17 CET 2017
vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 4 18:57:27 2017 +0200| [758a3891e15cdd70372b827ae1ccadb03eb3e038] | committer: Rémi Denis-Courmont
nsv: fix flawed logic (fixes #19213)
(cherry picked from commit 3d61f5d5a9bdd2ccd29fb627495c44371faf7cad)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=758a3891e15cdd70372b827ae1ccadb03eb3e038
---
modules/demux/nsv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/nsv.c b/modules/demux/nsv.c
index 033149c220..5fb0bc93c0 100644
--- a/modules/demux/nsv.c
+++ b/modules/demux/nsv.c
@@ -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;
}
More information about the vlc-commits
mailing list