mirror of
https://github.com/samsonjs/media.git
synced 2026-04-13 12:35:48 +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,
|
||||
CODECS_ATTR);
|
||||
if (codecsString != null) {
|
||||
codecs = codecsString.split(",");
|
||||
codecs = codecsString.split("(\\s*,\\s*)|(\\s*$)");
|
||||
} else {
|
||||
codecs = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue