Stop using VideoCodec.targetBitrate for vp8 screenshare config
This is a step toward simplifying the VideoCodec struct and removing the targetBitrate. The hard-coded values now reside in SimulcastRateAllocator. A follow-up will do away with the field altogether. Bug: webrtc:9504 Change-Id: I74d483682309d363048fbbbd31e0607d7242f504 Reviewed-on: https://webrtc-review.googlesource.com/87424 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23876}
This commit is contained in:
@ -84,9 +84,6 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
break;
|
||||
case VideoEncoderConfig::ContentType::kScreen:
|
||||
video_codec.mode = VideoCodecMode::kScreensharing;
|
||||
if (!streams.empty() && streams[0].num_temporal_layers == 2u) {
|
||||
video_codec.targetBitrate = streams[0].target_bitrate_bps / 1000;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user