fix: init mmd.Data

This commit is contained in:
Derrick Hammer 2024-03-01 02:49:50 -05:00
parent 28ff1eed48
commit 9485c023e7
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ func (mmd *MediaMetadataDetails) DecodeMsgpack(dec *msgpack.Decoder) error {
return err
}
mmd.Data = make(map[int]interface{}, mapLen)
for i := 0; i < mapLen; i++ {
key, err := dec.DecodeInt8()
if err != nil {