Skip to content

Commit

Permalink
revert WithDONL for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
y-kawawa committed Jan 10, 2025
1 parent 3845ccb commit d854f8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions codecs/h265_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,16 @@ func toAbsDON(don uint16, prevDON *uint16, prevAbsDON *int) int {
return 0
}

// WithDONL can be called to specify whether or not DONL might be parsed.
// DONL may need to be parsed if `sprop-max-don-diff` is greater than 0 on the RTP stream.
//
// Deprecated: replaced by WithMaxDONDiff.
func (p *H265Packet) WithDONL(value bool) {
if value {
p.maxDONDiff = 1
}
}

// WithMaxDONDiff sets the maximum difference between DON values before being emitted.
func (p *H265Packet) WithMaxDONDiff(value uint16) {
p.maxDONDiff = value
Expand Down

0 comments on commit d854f8c

Please sign in to comment.