Allow Vp8FrameBufferController::UpdateConfiguration to reset set of overrides
Bug: webrtc:10737 Change-Id: Ifdf82f140465d114300eda1e3ba1a26c70aaef76 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/141663 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Elad Alon <eladalon@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28247}
This commit is contained in:
@ -893,6 +893,11 @@ bool LibvpxVp8Encoder::UpdateVpxConfiguration(size_t stream_index) {
|
||||
const Vp8EncoderConfig new_config =
|
||||
frame_buffer_controller_->UpdateConfiguration(stream_index);
|
||||
|
||||
if (new_config.reset_previous_configuration_overrides) {
|
||||
*config = new_config;
|
||||
return true;
|
||||
}
|
||||
|
||||
const bool changes_made = MaybeExtendVp8EncoderConfig(new_config, config);
|
||||
|
||||
// Note that overrides must be applied even if they haven't changed.
|
||||
|
||||
Reference in New Issue
Block a user