refactor: frame converter and mp4 track improvements

- Refactor frame converter implementation
- Update mp4 track to use ICodex
- General refactoring and code improvements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
langhuihui
2025-08-04 09:17:12 +08:00
parent b6ee2843b0
commit 8a9fffb987
262 changed files with 20831 additions and 12141 deletions

View File

@@ -359,6 +359,7 @@ func (c *NetConnection) Receive(sendMode bool, onReceive func(byte, []byte) erro
return
} else if onReceive != nil {
if err := onReceive(channelID, buf); err != nil {
c.Error("onReceive", "error", err)
c.MemoryAllocator.Free(buf)
}
} else {