mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-10 01:20:06 +08:00
支持enhanced-rtmp中的H265推拉流
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user