(rtpItem *LIRTP)
| 58 | } |
| 59 | |
| 60 | func (g711 *G711) WriteRTPFrame(rtpItem *LIRTP) { |
| 61 | frame := &rtpItem.Value |
| 62 | g711.Value.RTP.Push(rtpItem) |
| 63 | if g711.SampleRate != 90000 { |
| 64 | g711.generateTimestamp(uint32(uint64(frame.Timestamp) * 90000 / uint64(g711.SampleRate))) |
| 65 | } |
| 66 | g711.AppendAuBytes(frame.Payload) |
| 67 | g711.Flush() |
| 68 | } |
| 69 | |
| 70 | func (g711 *G711) CompleteRTP(value *AVFrame) { |
| 71 | if value.AUList.ByteLength > RTPMTU { |
nothing calls this directly
no test coverage detected