fix FLAC offset direction
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b42a1fee89
commit
bae67a1c75
|
@ -800,13 +800,13 @@ func (p *FLACPacket) GetDataOffset(offset int64) []byte {
|
|||
number := int64(p.Number)
|
||||
if offset != 0 {
|
||||
if p.BlockingStrategy == 1 {
|
||||
number += offset
|
||||
number -= offset
|
||||
|
||||
if number < 0 {
|
||||
return nil
|
||||
}
|
||||
} else {
|
||||
number += offset / int64(p.hdr.MinimumBlockSize)
|
||||
number -= offset / int64(p.hdr.MinimumBlockSize)
|
||||
|
||||
if number < 0 {
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue