Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
csiwek committed Aug 1, 2019
1 parent fb13c66 commit 18b4f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opus.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bufio"
"bytes"
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"hash/crc32"
Expand Down Expand Up @@ -134,7 +135,7 @@ func (i *OpusReader) getPageHead() error {
return err
}
if bytes.Compare(head, []byte("OggS")) != 0 {
return fmt.Errorf("Incorrect page. Does not start with \"OggS\"")
return fmt.Errorf("Incorrect page. Does not start with \"OggS\" : %s %v", string(head), hex.EncodeToString(head))
}
//Skipping Version
io.CopyN(ioutil.Discard, i.stream, 1)
Expand Down

0 comments on commit 18b4f67

Please sign in to comment.