demux: hls: strip invalid padding chars from attributes

This commit is contained in:
Francois Cartegnie 2018-02-20 15:49:38 +01:00
parent e10dffc42d
commit 698a857c77

View File

@ -216,7 +216,7 @@ void AttributesTag::parseAttributes(const std::string &field)
break;
}
else /* out of range */
return;
iss.get();
}
std::string attrname = oss.str();
@ -240,6 +240,11 @@ void AttributesTag::parseAttributes(const std::string &field)
{
b_quoted = !b_quoted;
}
else if(!b_quoted && (c < '-' || c > 'z')) /* out of range */
{
iss.get();
continue;
}
if(!iss.eof())
oss.put((char)iss.get());