Commit 2952a46d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

MJPEG: fix boundary condition, off-by-one (closes #3128)

parent c07d7214
...@@ -128,7 +128,7 @@ static char* GetLine( demux_t *p_demux, int *p_pos ) ...@@ -128,7 +128,7 @@ static char* GetLine( demux_t *p_demux, int *p_pos )
int i; int i;
char *p_line; char *p_line;
while( *p_pos > p_sys->i_data_peeked ) while( *p_pos >= p_sys->i_data_peeked )
{ {
if( ! Peek( p_demux, false ) ) if( ! Peek( p_demux, false ) )
{ {
......
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