Skip to content

Commit

Permalink
SimulcastConsumer: Fix frozen video when syncing keyframe is discarde…
Browse files Browse the repository at this point in the history
…d due to too high RTP timestamp extra offset needed

- It may fix #990.
- Rationale here: #990 (comment).
- Basically we should reset this->syncRequired` nor `this->spatialLayerToSync` when the keyframe that is supposed to switch to another spatial layer is discarded due to too high RTP timestamp extra offset needed.
  • Loading branch information
ibc committed Jan 31, 2023
1 parent c882311 commit fff41f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions worker/src/RTC/SimulcastConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,10 @@ namespace RTC

this->keyFrameForTsOffsetRequested = true;

// Reset flags since we are discarding this key frame.
this->syncRequired = false;
this->spatialLayerToSync = -1;

return;
}

Expand Down

0 comments on commit fff41f5

Please sign in to comment.