fix: need to cast language items to a string

This commit is contained in:
Derrick Hammer 2024-03-01 03:25:20 -05:00
parent 05522522bf
commit c00fe56389
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ func (mmd *MediaFormat) DecodeMsgpack(dec *msgpack.Decoder) error {
case 11:
mmd.Width = intParse(value)
case 12:
mmd.Languages = value.([]string)
vals := value.([]interface{})
for _, val := range vals {
mmd.Languages = append(mmd.Languages, val.(string))
}
case 13:
mmd.Asr = intParse(value)
case 14: