fix: init m

This commit is contained in:
Derrick Hammer 2024-03-01 03:17:03 -05:00
parent d52e20c0e1
commit 1b950bae08
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -220,6 +220,8 @@ func (m *mediaMap) DecodeMsgpack(dec *msgpack.Decoder) error {
return err
}
*m = make(map[string][]MediaFormat, mapLen)
for i := 0; i < mapLen; i++ {
typ, err := dec.DecodeString()
if err != nil {