fix: need to cast language items to a string
This commit is contained in:
parent
05522522bf
commit
c00fe56389
|
@ -95,7 +95,11 @@ func (mmd *MediaFormat) DecodeMsgpack(dec *msgpack.Decoder) error {
|
||||||
case 11:
|
case 11:
|
||||||
mmd.Width = intParse(value)
|
mmd.Width = intParse(value)
|
||||||
case 12:
|
case 12:
|
||||||
mmd.Languages = value.([]string)
|
vals := value.([]interface{})
|
||||||
|
|
||||||
|
for _, val := range vals {
|
||||||
|
mmd.Languages = append(mmd.Languages, val.(string))
|
||||||
|
}
|
||||||
case 13:
|
case 13:
|
||||||
mmd.Asr = intParse(value)
|
mmd.Asr = intParse(value)
|
||||||
case 14:
|
case 14:
|
||||||
|
|
Loading…
Reference in New Issue