absl::optional<size_t> stream_idx,
const webrtc::EncodedImage& encoded_image,
const webrtc::CodecSpecificInfo* codec_specific_info) {
- webrtc::EncodedImage stream_image(encoded_image);
- webrtc::CodecSpecificInfo stream_codec_specific = *codec_specific_info;
if (stream_idx) {
+ webrtc::EncodedImage stream_image(encoded_image);
stream_image.SetSimulcastIndex(*stream_idx);
+ return encoded_complete_callback_->OnEncodedImage(stream_image,
+ codec_specific_info);
+ } else {
+ return encoded_complete_callback_->OnEncodedImage(encoded_image,
+ codec_specific_info);
}
- return encoded_complete_callback_->OnEncodedImage(stream_image,
- &stream_codec_specific);
}
void SwitchableVideoEncoderWrapper::OnDroppedFrame(