fix: g711 override memory

fix: PacketizeRTP memory leak
fix: avoid read files beyond the log path
This commit is contained in:
langhuihui
2023-05-25 19:12:01 +08:00
parent d3b26d69fc
commit fc7ac81c4e
13 changed files with 132 additions and 40 deletions

View File

@@ -77,6 +77,11 @@ func (a AudioFrame) GetADTS() (r net.Buffers) {
return
}
func (a AudioFrame) WriteRawTo(w io.Writer) (n int64, err error) {
aulist := a.AUList.ToBuffers()
return aulist.WriteTo(w)
}
func (v VideoFrame) GetAnnexB() (r net.Buffers) {
if v.IFrame {
r = v.ParamaterSets.GetAnnexB()