Make AV1 respect spatial layer active flag.
Bug: webrtc:12788 Change-Id: Ied629e1635b6ff9bf92fab2d1af708163f9dd28c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220928 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34189}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
d23628dfb6
commit
f865444877
@ -262,7 +262,11 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
break;
|
||||
}
|
||||
case kVideoCodecAV1:
|
||||
if (!SetAv1SvcConfig(video_codec)) {
|
||||
if (SetAv1SvcConfig(video_codec)) {
|
||||
for (size_t i = 0; i < config.spatial_layers.size(); ++i) {
|
||||
video_codec.spatialLayers[i].active = config.spatial_layers[i].active;
|
||||
}
|
||||
} else {
|
||||
RTC_LOG(LS_WARNING) << "Failed to configure svc bitrates for av1.";
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user