diff --git a/opus.go b/opus.go index 359e0be..e3b7b5f 100644 --- a/opus.go +++ b/opus.go @@ -250,7 +250,7 @@ func (i *OpusReader) GetSample() (*OpusSamples, error) { break } opusSamples.Frames = frames - tocConfig := tmpPacket[0] >> 3 + tocConfig := tmptoc >> 3 var length uint32 length = uint32(tocConfig & 3)