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 7c0c9c5 commit 6053a27
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 @@ -802,6 +802,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 6053a27

Please sign in to comment.