Commit 7f55a6ea authored by Eric Petit's avatar Eric Petit Committed by Hugo Beauzée-Luyssen

httplive: slightly more robust parsing of attributes

This fixes playback on an AES-128 encrypted stream I ran into: the key
URL happened to have "iv" somewhere in it, which led VLC to try - and
fail - to parse an IV.
Signed-off-by: default avatarHugo Beauzée-Luyssen <beauze.h@gmail.com>
parent a3f60711
......@@ -484,7 +484,8 @@ static char *parse_Attributes(const char *line, const char *attr)
begin = p;
do
{
if (strncasecmp(begin, attr, strlen(attr)) == 0)
if (strncasecmp(begin, attr, strlen(attr)) == 0
&& begin[strlen(attr)] == '=')
{
/* <attr>=<value>[,]* */
p = strchr(begin, ',');
......
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