Commit 9790430a by Oliver Woodman

Trim whitespace from codecs

parent 55b4272a
......@@ -73,7 +73,7 @@ public final class HlsMasterPlaylistParser implements ManifestParser<HlsMasterPl
String codecsString = HlsParserUtil.parseOptionalStringAttr(line, CODECS_ATTR_REGEX,
CODECS_ATTR);
if (codecsString != null) {
codecs = codecsString.split(",");
codecs = codecsString.split("(\\s*,\\s*)|(\\s*$)");
} else {
codecs = null;
}
......
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 sign in to comment