Skip to content
Snippets Groups Projects
Commit 5ad7967e authored by kc7bfi's avatar kc7bfi Committed by Rémi Denis-Courmont
Browse files

mjpeg: work around broken MIME separators in crappy firmwares


Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 6ef4ee0f
No related branches found
No related tags found
No related merge requests found
......@@ -508,8 +508,13 @@ static int MimeDemux( demux_t *p_demux )
}
}
if( !strncmp( p_sys->psz_separator, (char *)(p_sys->p_peek + i + 2),
strlen( p_sys->psz_separator ) ) )
/* Handle old and new style of separators */
if (!strncmp(p_sys->psz_separator, (char *)(p_sys->p_peek + i + 2),
strlen( p_sys->psz_separator ))
|| ((strlen(p_sys->psz_separator) > 4)
&& !strncmp(p_sys->psz_separator, "--", 2)
&& !strncmp(p_sys->psz_separator, (char *)(p_sys->p_peek + i),
strlen( p_sys->psz_separator))))
{
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment