Read and skip extended header bytes for 2.3 and 2.4

Fixes #21
This commit is contained in:
Mattias Wadman
2016-05-05 17:18:51 +02:00
parent 66b965ab49
commit 2d92c90588
2 changed files with 46 additions and 12 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ func SumID3v1(r io.ReadSeeker) (string, error) {
// SumID3v2 constructs a checksum of MP3 audio file data (assumed to have ID3v2 tags) provided by the
// io.ReadSeeker which is metadata invariant.
func SumID3v2(r io.ReadSeeker) (string, error) {
header, err := readID3v2Header(r)
header, _, err := readID3v2Header(r)
if err != nil {
return "", fmt.Errorf("error reading ID3v2 header: %v", err)
}