be more cautious with language parsing

Relates to #76
This commit is contained in:
David Howden
2020-11-20 06:21:29 +11:00
parent 46e57f75db
commit 53ee65d2ae
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ func readID3v2Frames(r io.Reader, offset uint, h *id3v2Header) (map[string]inter
case name == "COMM" || name == "COM" || name == "USLT" || name == "ULT":
t, err := readTextWithDescrFrame(b, true, true) // both lang and enc
if err != nil {
return nil, err
return nil, fmt.Errorf("could not read %q (%q): %v", name, rawName, err)
}
result[rawName] = t