Request key frame on all layers.
Explicitly request key frame on all layers until proper mapping is implemented (webrtc:10615). Bug: webrtc:10585 Change-Id: I9722610920a753c50700d925ff6a1babf0011e2f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/136682 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27934}
This commit is contained in:
committed by
Commit Bot
parent
5fc28b11a0
commit
e62a08a87a
@ -409,11 +409,13 @@ int32_t H264EncoderImpl::Encode(
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!send_key_frame && frame_types) {
|
||||
for (size_t i = 0; i < frame_types->size() && i < configurations_.size();
|
||||
++i) {
|
||||
if ((*frame_types)[i] == VideoFrameType::kVideoFrameKey &&
|
||||
configurations_[i].sending) {
|
||||
for (size_t i = 0; i < configurations_.size(); ++i) {
|
||||
const size_t simulcast_idx =
|
||||
static_cast<size_t>(configurations_[i].simulcast_idx);
|
||||
if (configurations_[i].sending && simulcast_idx < frame_types->size() &&
|
||||
(*frame_types)[simulcast_idx] == VideoFrameType::kVideoFrameKey) {
|
||||
send_key_frame = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user