Fix: panic on empty description in text-description frames.

This commit is contained in:
David Howden 2015-06-27 19:24:33 +10:00
parent d3e0c4a33f
commit 1b0e92375a

View File

@ -179,6 +179,10 @@ func readTextWithDescrFrame(b []byte, hasLang bool, encoded bool) (*Comm, error)
}
c.Description = desc
if len(descTextSplit) == 1 {
return c, nil
}
if !encoded {
enc = byte(0)
}