Make the bitrate_allocator param optional to prepare for its removal
in https://webrtc-review.googlesource.com/109040 Bug: webrtc:9513 Change-Id: I676e5e0242f068b12764a52bf8b6a6865ea7f120 Reviewed-on: https://webrtc-review.googlesource.com/c/110142 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Oleh Prypin <oprypin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25558}
This commit is contained in:
@ -41,7 +41,9 @@ bool VideoCodecInitializer::SetupCodec(
|
||||
}
|
||||
|
||||
*codec = VideoEncoderConfigToVideoCodec(config, streams);
|
||||
*bitrate_allocator = CreateBitrateAllocator(*codec);
|
||||
if (bitrate_allocator) {
|
||||
*bitrate_allocator = CreateBitrateAllocator(*codec);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user