mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-06 00:56:58 +08:00
fix: g711 override memory
fix: PacketizeRTP memory leak fix: avoid read files beyond the log path
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user