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 05bfd69 commit e3c1c1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/readfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ func main() {
if err != nil {
fmt.Printf("Could not open file %v\n", err.Error())
}
for i := 0; i < 100; i++ {
_, err := opusfile.GetSingleSample()
for i := 0; i < 5; i++ {
_, err = opusfile.GetSingleSample()
if err != nil {
fmt.Printf("GetSingleSample returned Errr %v\n", err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion opus.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (i *OpusReader) getPage() error {
return err
}
// we are not interested in tags (metadata?)
io.CopyN(ioutil.Discard, i.stream, int64(i.payloadLen-plen))
io.CopyN(ioutil.Discard, i.stream, int64(plen))

} else {
io.CopyN(ioutil.Discard, i.stream, int64(i.payloadLen))
Expand Down

0 comments on commit e3c1c1b

Please sign in to comment.