Skip to content

Commit

Permalink
Fix issue versatica#989 to properly allocate bitrate in simulcast and…
Browse files Browse the repository at this point in the history
… SVC consumers.
  • Loading branch information
Eugene Voityuk committed Jan 26, 2023
1 parent 9c98b94 commit 78fa15a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion worker/src/RTC/SimulcastConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ namespace RTC
continue;
}

requiredBitrate = producerRtpStream->GetLayerBitrate(nowMs, 0, temporalLayer);
requiredBitrate = producerRtpStream->GetBitrate(nowMs, 0, temporalLayer);

// This is simulcast so we must substract the bitrate of the current temporal
// spatial layer if this is the temporal layer 0 of a higher spatial layer.
Expand Down
2 changes: 1 addition & 1 deletion worker/src/RTC/SvcConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ namespace RTC
}

requiredBitrate =
this->producerRtpStream->GetLayerBitrate(nowMs, spatialLayer, temporalLayer);
this->producerRtpStream->GetBitrate(nowMs, spatialLayer, temporalLayer);

MS_DEBUG_DEV(
"testing layers %" PRIi16 ":%" PRIi16 " [virtual bitrate:%" PRIu32
Expand Down

0 comments on commit 78fa15a

Please sign in to comment.