A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/877adfa5fc4c98050faaa5062c0ab5097d634ca1 below:

[docs] Removed unused SRTO_FC from config function · Haivision/srt@877adfa · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-3

lines changed Original file line number Diff line number Diff line change

@@ -32,7 +32,7 @@ int getRbufSizePkts(int SRTO_RCVBUF, int SRTO_MSS, int SRTO_FC)

32 32

// UDP header size is assumed to be 28 bytes

33 33

// 20 bytes IPv4 + 8 bytes of UDP

34 34

const int UDPHDR_SIZE = 28;

35 -

const in pkts = (rbuf_size / (SRTO_MSS - UDPHDR_SIZE));

35 +

const int pkts = (rbuf_size / (SRTO_MSS - UDPHDR_SIZE));

36 36 37 37

return min(pkts, SRTO_FC);

38 38

}

@@ -88,7 +88,7 @@ where

88 88 89 89

```c++

90 90 91 -

auto CalculateTargetRBufSize(int msRTT, int bpsRate, int bytesPayloadSize, int msLatency, int SRTO_MSS, int SRTO_FC)

91 +

auto CalculateTargetRBufSize(int msRTT, int bpsRate, int bytesPayloadSize, int msLatency, int SRTO_MSS)

92 92

{

93 93

const int UDPHDR_SIZE = 28;

94 94

const int targetPayloadBytes = (msLatency + msRTT / 2) * bpsRate / 1000 / 8;

@@ -99,7 +99,7 @@ auto CalculateTargetRBufSize(int msRTT, int bpsRate, int bytesPayloadSize, int m

99 99 100 100

// Configuring

101 101 102 -

const auto [fc, rcvbuf] = CalculateTargetRBufSize(msRTT, bpsRate, bytesPayloadSize, SRTO_RCVLATENCY, SRTO_MSS, SRTO_FC);

102 +

const auto [fc, rcvbuf] = CalculateTargetRBufSize(msRTT, bpsRate, bytesPayloadSize, SRTO_RCVLATENCY, SRTO_MSS);

103 103 104 104

int optval = fc;

105 105

int optlen = sizeof optval;

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4