Skip to content

Commit

Permalink
Mark ReadFrames as being deprecated
Browse files Browse the repository at this point in the history
This function's interface is mis-designed, since it relies on the
AV1Packet retaining the whole list of OBUs.
  • Loading branch information
jech committed Apr 15, 2024
1 parent 242f5de commit 2c9f7bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codecs/av1/frame/av1.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func (f *AV1) pushOBUElement(isFirstOBUFragment *bool, obuElement []byte, obuLis
}

// ReadFrames processes the codecs.AV1Packet and returns fully constructed frames
//
// Deprecated: this depends on the depreacted OBUElements field being set
// by the caller.
func (f *AV1) ReadFrames(pkt *codecs.AV1Packet) ([][]byte, error) {
OBUs := [][]byte{}
isFirstOBUFragment := pkt.Z
Expand Down

0 comments on commit 2c9f7bf

Please sign in to comment.