Correctly process disabled streams in FrameEncodeMetadataWriter
If the first simulcast stream is disabled, but the second one is enabled, FrameEncodeMetadataWriter would fail to store frame metadata for all streams and later fail to restore it for encoded frames. Bug: none Change-Id: Ib0d257abb863716ea94e56730f7caabef6ebeb64 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/162480 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30106}
This commit is contained in:
parent
00a1bcb441
commit
9b540cb553
@ -105,7 +105,7 @@ void FrameEncodeMetadataWriter::OnEncodeStarted(const VideoFrame& frame) {
|
||||
// If stream is disabled due to low bandwidth OnEncodeStarted still will be
|
||||
// called and have to be ignored.
|
||||
if (timing_frames_info_[si].target_bitrate_bytes_per_sec == 0)
|
||||
return;
|
||||
continue;
|
||||
if (timing_frames_info_[si].frames.size() == kMaxEncodeStartTimeListSize) {
|
||||
++stalled_encoder_logged_messages_;
|
||||
if (stalled_encoder_logged_messages_ <= kMessagesThrottlingThreshold ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user