This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -240,10 +240,6 @@ int SimulcastEncoderAdapter::InitEncode(
240
240
RTC_DCHECK_LT (lowest_resolution_stream_index, number_of_streams);
241
241
RTC_DCHECK_LT (highest_resolution_stream_index, number_of_streams);
242
242
243
- const SdpVideoFormat format (
244
- codec_.codecType == webrtc::kVideoCodecVP8 ? " VP8" : " H264" ,
245
- video_format_.parameters );
246
-
247
243
for (int i = 0 ; i < number_of_streams; ++i) {
248
244
// If an existing encoder instance exists, reuse it.
249
245
// TODO(brandtr): Set initial RTP state (e.g., picture_id/tl0_pic_idx) here,
@@ -253,10 +249,10 @@ int SimulcastEncoderAdapter::InitEncode(
253
249
encoder = std::move (stored_encoders_.top ());
254
250
stored_encoders_.pop ();
255
251
} else {
256
- encoder = primary_encoder_factory_->CreateVideoEncoder (format );
252
+ encoder = primary_encoder_factory_->CreateVideoEncoder (video_format_ );
257
253
if (fallback_encoder_factory_ != nullptr ) {
258
254
encoder = CreateVideoEncoderSoftwareFallbackWrapper (
259
- fallback_encoder_factory_->CreateVideoEncoder (format ),
255
+ fallback_encoder_factory_->CreateVideoEncoder (video_format_ ),
260
256
std::move (encoder),
261
257
i == lowest_resolution_stream_index &&
262
258
prefer_temporal_support_on_base_layer_);
You can’t perform that action at this time.
0 commit comments