feat: remove RecyclableMemory

This commit is contained in:
langhuihui
2024-05-21 15:19:04 +08:00
parent 5c52a159e0
commit 82deb3fbaa
25 changed files with 749 additions and 713 deletions

View File

@@ -96,6 +96,14 @@ func (r *RTPVideo) Parse(t *AVTrack) (isIDR, isSeq bool, raw any, err error) {
return
}
func (h264 *RTPH264Ctx) GetInfo() string {
return h264.SDPFmtpLine
}
func (h265 *RTPH265Ctx) GetInfo() string {
return h265.SDPFmtpLine
}
func (h264 *RTPH264Ctx) CreateFrame(from *AVFrame) (frame IAVFrame, err error) {
var r RTPVideo
r.ScalableMemoryAllocator = from.Wraps[0].GetScalableMemoryAllocator()