Fix vp9 svc singlecast mode and enable quality scaler for vp9
1) Fix several typos and small mistakes which could lead to crashes 2) Adjust bitrates if leading layers are disabled 3) Wire up webrtc quality scaler Bug: webrtc:11319 Change-Id: I16e52bdb1c315d64906288e4f2be55fe698d5ceb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/177525 Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31546}
This commit is contained in:

committed by
Commit Bot

parent
79ca92d952
commit
7a82467d0d
@ -75,7 +75,9 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
static_cast<unsigned char>(streams.size());
|
||||
video_codec.minBitrate = streams[0].min_bitrate_bps / 1000;
|
||||
bool codec_active = false;
|
||||
for (const VideoStream& stream : streams) {
|
||||
// Active configuration might not be fully copied to |streams| for SVC yet.
|
||||
// Therefore the |config| is checked here.
|
||||
for (const VideoStream& stream : config.simulcast_layers) {
|
||||
if (stream.active) {
|
||||
codec_active = true;
|
||||
break;
|
||||
@ -205,7 +207,7 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
spatial_layers.back().maxBitrate = video_codec.maxBitrate;
|
||||
}
|
||||
|
||||
for (size_t spatial_idx = 0;
|
||||
for (size_t spatial_idx = first_active_layer;
|
||||
spatial_idx < config.simulcast_layers.size() &&
|
||||
spatial_idx < spatial_layers.size();
|
||||
++spatial_idx) {
|
||||
|
Reference in New Issue
Block a user