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:
Elad Alon
2019-06-12 11:29:04 +02:00
committed by Commit Bot
parent a9952cb0c4
commit 5cf390386b
2 changed files with 10 additions and 3 deletions

View File

@ -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.