(value *AVFrame)
| 41 | } |
| 42 | |
| 43 | func (opus *Opus) CompleteRTP(value *AVFrame) { |
| 44 | if value.AUList.ByteLength > RTPMTU { |
| 45 | var packets [][][]byte |
| 46 | r := value.AUList.Next.Value.NewReader() |
| 47 | for bufs := r.ReadN(RTPMTU); len(bufs) > 0; bufs = r.ReadN(RTPMTU) { |
| 48 | packets = append(packets, bufs) |
| 49 | } |
| 50 | opus.PacketizeRTP(packets...) |
| 51 | } else { |
| 52 | opus.Audio.CompleteRTP(value) |
| 53 | } |
| 54 | } |
nothing calls this directly
no test coverage detected