mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Trim whitespace from codecs
This commit is contained in:
parent
55b4272a46
commit
9790430a62
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ public final class HlsMasterPlaylistParser implements ManifestParser<HlsMasterPl
|
||||||
String codecsString = HlsParserUtil.parseOptionalStringAttr(line, CODECS_ATTR_REGEX,
|
String codecsString = HlsParserUtil.parseOptionalStringAttr(line, CODECS_ATTR_REGEX,
|
||||||
CODECS_ATTR);
|
CODECS_ATTR);
|
||||||
if (codecsString != null) {
|
if (codecsString != null) {
|
||||||
codecs = codecsString.split(",");
|
codecs = codecsString.split("(\\s*,\\s*)|(\\s*$)");
|
||||||
} else {
|
} else {
|
||||||
codecs = null;
|
codecs = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue