[vlc-devel] commit: MJPEG: fix boundary condition, off-by-one (closes #3128) ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Oct 29 18:59:35 CET 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 29 19:57:19 2009 +0200| [19d703eda4269351b21c51931384e96cc684fbc8] | committer: Rémi Denis-Courmont 

MJPEG: fix boundary condition, off-by-one (closes #3128)
(cherry picked from commit 9e4b1526f9fda6351ac4a053a7e412a6bb54d7e8)

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

 modules/demux/mjpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mjpeg.c b/modules/demux/mjpeg.c
index 69d54db..9459e91 100644
--- a/modules/demux/mjpeg.c
+++ b/modules/demux/mjpeg.c
@@ -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 ) )
         {




More information about the vlc-devel mailing list