mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 03:26:01 +08:00
fix: track无效保存帧问题
This commit is contained in:
@@ -10,9 +10,9 @@ type Track struct {
|
|||||||
Pts int64 // 最新的PTS
|
Pts int64 // 最新的PTS
|
||||||
Dts int64 // 最新的DTS
|
Dts int64 // 最新的DTS
|
||||||
FrameDuration int // 单帧时长, timebase和推流一致
|
FrameDuration int // 单帧时长, timebase和推流一致
|
||||||
Packets collections.LinkedList[*collections.ReferenceCounter[*avformat.AVPacket]]
|
Packets *collections.LinkedList[*collections.ReferenceCounter[*avformat.AVPacket]]
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTrack(stream *avformat.AVStream, dts, pts int64) *Track {
|
func NewTrack(stream *avformat.AVStream, dts, pts int64) *Track {
|
||||||
return &Track{stream, dts, pts, 0, collections.LinkedList[*collections.ReferenceCounter[*avformat.AVPacket]]{}}
|
return &Track{stream, dts, pts, 0, &collections.LinkedList[*collections.ReferenceCounter[*avformat.AVPacket]]{}}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user