Commit 1f9e45a3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Increase samplebuilder buffers even more.

parent 6af729ee
......@@ -335,21 +335,21 @@ func newDiskConn(client *Client, directory string, up conn.Up, remoteTracks []co
codec := remote.Codec()
if strings.EqualFold(codec.MimeType, "audio/opus") {
builder = samplebuilder.New(
16, &codecs.OpusPacket{}, codec.ClockRate,
32, &codecs.OpusPacket{}, codec.ClockRate,
)
} else if strings.EqualFold(codec.MimeType, "video/vp8") {
builder = samplebuilder.New(
256, &codecs.VP8Packet{}, codec.ClockRate,
1024, &codecs.VP8Packet{}, codec.ClockRate,
)
conn.hasVideo = true
} else if strings.EqualFold(codec.MimeType, "video/vp9") {
builder = samplebuilder.New(
256, &codecs.VP9Packet{}, codec.ClockRate,
1024, &codecs.VP9Packet{}, codec.ClockRate,
)
conn.hasVideo = true
} else if strings.EqualFold(codec.MimeType, "video/h264") {
builder = samplebuilder.New(
256, &codecs.H264Packet{}, codec.ClockRate,
1024, &codecs.H264Packet{}, codec.ClockRate,
)
conn.hasVideo = true
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment