支持enhanced-rtmp中的H265推拉流

This commit is contained in:
yangjiechina
2024-04-16 20:29:48 +08:00
parent ef9a0fea4f
commit 1fd0a2f063
11 changed files with 85 additions and 57 deletions

View File

@@ -1,6 +1,9 @@
package stream
import "github.com/yangjiechina/avformat/utils"
import (
"github.com/yangjiechina/avformat/libbufio"
"github.com/yangjiechina/avformat/utils"
)
type Queue struct {
*ringBuffer
@@ -42,7 +45,7 @@ func (q *Queue) PopBack() interface{} {
value := q.ringBuffer.Tail()
q.size--
q.tail = utils.MaxInt(0, q.tail-1)
q.tail = libbufio.MaxInt(0, q.tail-1)
return value
}