keep header on Ogg packetizer
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
4973144585
commit
3cdfe0039f
|
@ -26,6 +26,9 @@ type OggPacket struct {
|
|||
}
|
||||
|
||||
func (p *OggPacket) KeepMode() KeepMode {
|
||||
if p.header.AbsoluteGranulePosition == 0 {
|
||||
return Keep
|
||||
}
|
||||
return Discard
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue