New enum ScalabilityMode.
Used instead of string representation in lower-levels of encoder configuration, to avoid string comparisons (with risk of misspelling) in lots of places. Bug: webrtc:11607 Change-Id: I4d51c2265aac297c29976d2aa601d8ffb33b7326 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/259870 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Florent Castelli <orphis@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36706}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
cbf07f70e2
commit
79d566b0cf
@ -94,7 +94,8 @@ VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
|
||||
int max_framerate = 0;
|
||||
|
||||
absl::optional<std::string> scalability_mode = streams[0].scalability_mode;
|
||||
absl::optional<ScalabilityMode> scalability_mode =
|
||||
streams[0].scalability_mode;
|
||||
for (size_t i = 0; i < streams.size(); ++i) {
|
||||
SpatialLayer* sim_stream = &video_codec.simulcastStream[i];
|
||||
RTC_DCHECK_GT(streams[i].width, 0);
|
||||
|
Reference in New Issue
Block a user