(ts uint32, frame *util.BLL)
| 94 | } |
| 95 | |
| 96 | func (aac *AAC) WriteAVCC(ts uint32, frame *util.BLL) error { |
| 97 | if l := frame.ByteLength; l < 4 { |
| 98 | aac.Error("AVCC data too short", zap.Int("len", l)) |
| 99 | return io.ErrShortWrite |
| 100 | } |
| 101 | if frame.GetByte(1) == 0 { |
| 102 | aac.WriteSequenceHead(frame.ToBytes()) |
| 103 | frame.Recycle() |
| 104 | } else { |
| 105 | au := frame.ToBuffers() |
| 106 | au[0] = au[0][2:] |
| 107 | aac.AppendAuBytes(au...) |
| 108 | aac.Audio.WriteAVCC(ts, frame) |
| 109 | } |
| 110 | return nil |
| 111 | } |
| 112 | |
| 113 | func (aac *AAC) CompleteRTP(value *AVFrame) { |
| 114 | l := value.AUList.ByteLength |
nothing calls this directly
no test coverage detected