[vlc-commits] nsv: fix flawed logic (fixes #19213)

Rémi Denis-Courmont git at videolan.org
Mon Dec 4 17:58:00 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec  4 18:57:27 2017 +0200| [3d61f5d5a9bdd2ccd29fb627495c44371faf7cad] | committer: Rémi Denis-Courmont

nsv: fix flawed logic (fixes #19213)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d61f5d5a9bdd2ccd29fb627495c44371faf7cad
---

 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