From b0c16a0e0b828f953e2e437c80bc47be2f33bdd0 Mon Sep 17 00:00:00 2001 From: nareix Date: Wed, 29 Jun 2016 10:46:06 +0800 Subject: [PATCH] add toupper --- sdp/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdp/parser.go b/sdp/parser.go index 925d9eb..8704081 100644 --- a/sdp/parser.go +++ b/sdp/parser.go @@ -69,7 +69,7 @@ func Parse(content string) (sess Session, medias []Media) { keyval = strings.Split(field, "/") if len(keyval) >= 2 { key := keyval[0] - switch key { + switch strings.ToUpper(key) { case "MPEG4-GENERIC": media.Type = av.AAC case "H264":