meta: Fix copy-paste bug in parseHeader.

This commit is contained in:
mewmew 2014-08-06 08:27:35 +02:00
parent 6d230e615f
commit 019a82fd7c
2 changed files with 3 additions and 5 deletions

View file

@ -1,4 +1,5 @@
// TODO(u): Implement error handling for CueSheet parsing.
// TODO(u): Check handling of padding during the parsing of CueSheet.
package meta

View file

@ -1,6 +1,3 @@
// TODO(u): Check that all block.parseXXX functions stores the decoded content
// in block.Body.
// Package meta implements access to FLAC metadata.
package meta
@ -118,14 +115,14 @@ func (block *Block) parseHeader(r io.Reader) error {
}
// 7 bits: Type.
x, err = br.Read(1)
x, err = br.Read(7)
if err != nil {
return err
}
block.Type = Type(x)
// 24 bits: Length.
x, err = br.Read(1)
x, err = br.Read(24)
if err != nil {
return err
}