mirror of
https://github.com/jech/galene.git
synced 2024-12-22 07:15:47 +01:00
Update samplebuilder, increase buffer size.
This avoids a crash when a single frame was too large for the samplebuilder.
This commit is contained in:
parent
5c2e27b21d
commit
501edd4a88
3 changed files with 6 additions and 6 deletions
|
@ -339,17 +339,17 @@ func newDiskConn(client *Client, directory string, up conn.Up, remoteTracks []co
|
|||
)
|
||||
} else if strings.EqualFold(codec.MimeType, "video/vp8") {
|
||||
builder = samplebuilder.New(
|
||||
128, &codecs.VP8Packet{}, codec.ClockRate,
|
||||
256, &codecs.VP8Packet{}, codec.ClockRate,
|
||||
)
|
||||
conn.hasVideo = true
|
||||
} else if strings.EqualFold(codec.MimeType, "video/vp9") {
|
||||
builder = samplebuilder.New(
|
||||
128, &codecs.VP9Packet{}, codec.ClockRate,
|
||||
256, &codecs.VP9Packet{}, codec.ClockRate,
|
||||
)
|
||||
conn.hasVideo = true
|
||||
} else if strings.EqualFold(codec.MimeType, "video/h264") {
|
||||
builder = samplebuilder.New(
|
||||
128, &codecs.H264Packet{}, codec.ClockRate,
|
||||
256, &codecs.H264Packet{}, codec.ClockRate,
|
||||
)
|
||||
conn.hasVideo = true
|
||||
} else {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -6,7 +6,7 @@ require (
|
|||
github.com/at-wat/ebml-go v0.16.0
|
||||
github.com/gorilla/websocket v1.4.2
|
||||
github.com/jech/cert v0.0.0-20210819231831-aca735647728
|
||||
github.com/jech/samplebuilder v0.0.0-20210823163459-dd92d75bae48
|
||||
github.com/jech/samplebuilder v0.0.0-20211123183614-17c7adaa0ec2
|
||||
github.com/pion/ice/v2 v2.1.13
|
||||
github.com/pion/rtcp v1.2.8
|
||||
github.com/pion/rtp v1.7.4
|
||||
|
|
4
go.sum
4
go.sum
|
@ -25,8 +25,8 @@ github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad
|
|||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||
github.com/jech/cert v0.0.0-20210819231831-aca735647728 h1:tN+W1ll2oKuJGMCaO1CRK4rr+xSRjVSfWmnKlACdx38=
|
||||
github.com/jech/cert v0.0.0-20210819231831-aca735647728/go.mod h1:FXUA/zpiQfV4uBVN2kAwkf3X7pU7l1l2ovS45CsSYZs=
|
||||
github.com/jech/samplebuilder v0.0.0-20210823163459-dd92d75bae48 h1:KTbuIm1zPo0aWHLPs5uLU4u68gxvP6bs7Iyw4Rzd8c0=
|
||||
github.com/jech/samplebuilder v0.0.0-20210823163459-dd92d75bae48/go.mod h1:CHSZxAXMLpiht1TO02fn+EO2IEd1jgg80O9XswtRDW0=
|
||||
github.com/jech/samplebuilder v0.0.0-20211123183614-17c7adaa0ec2 h1:Eo5ygUssm6Ip3HJIqDkIg8ckqTj01K1rOxjfkQiQtwE=
|
||||
github.com/jech/samplebuilder v0.0.0-20211123183614-17c7adaa0ec2/go.mod h1:v8Ft/hAXNMLvYSyhWFcKgKgfqPV4EwOhVwk4oLstjpE=
|
||||
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
|
|
Loading…
Reference in a new issue