]> git.sesse.net Git - vlc/commitdiff
MJPEG: fix boundary condition, off-by-one (closes #3128)
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 29 Oct 2009 17:57:19 +0000 (19:57 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 29 Oct 2009 17:57:51 +0000 (19:57 +0200)
modules/demux/mjpeg.c

index 406ac6e7a3a47775a0295f8227bde62bdf8a332e..f1323010170ed8f3c72ca988484db36f1ae12547 100644 (file)
@@ -128,7 +128,7 @@ static char* GetLine( demux_t *p_demux, int *p_pos )
     int         i;
     char        *p_line;
 
-    while( *p_pos > p_sys->i_data_peeked )
+    while( *p_pos >= p_sys->i_data_peeked )
     {
         if( ! Peek( p_demux, false ) )
         {