streaming

Media streaming and broadcast systems in Go
Log | Files | Refs | README | LICENSE

commit 0042f8fa6a2d2e9069555926bc13803f22dffe16
parent 129d26cc2c31a77ef88feb3850ba3e363dadac99
Author: Oliver Lowe <o@olowe.co>
Date:   Thu, 23 May 2024 18:25:35 +1000

m3u8: Don't store quotes in more attribute values

These aren't strictly the value; if the value would contain quotes
then we would need to escape them.

Diffstat:
Mm3u8/parse.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m3u8/parse.go b/m3u8/parse.go @@ -119,7 +119,7 @@ func parseVariant(items chan item) (*Variant, error) { if it.typ != itemString { return nil, fmt.Errorf("parse codecs attribute: unexpected %s", it) } - v.Codecs = strings.Split(it.val, ",") + v.Codecs = strings.Split(strings.Trim(it.val, `"`), ",") case "RESOLUTION": it = <-items if it.typ != itemString {