add toupper

This commit is contained in:
nareix 2016-06-29 10:46:06 +08:00
parent 330fcdbf4e
commit b0c16a0e0b

View File

@ -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":