Skip to content

Commit

Permalink
fix Simulcast IncreaseLayer bug when producer score is zero (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynnworld authored Jun 19, 2024
1 parent dab1a22 commit 26e03ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions worker/src/RTC/SimulcastConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ namespace RTC
continue;
}

// Ignore spatial layers for Producer stream score 0.
if (producerRtpStream->GetScore() == 0)
{
continue;
}

// If the stream has not been active time enough and we have an active one
// already, move to the next spatial layer.
// clang-format off
Expand Down

0 comments on commit 26e03ba

Please sign in to comment.