This cover scenario where target bitrate is changed in a middle of of group of frame after spatial upswitch. This change should avoid wasting encoder resources to produce those frames, reduce number of errors "Encoder produced a frame for layer that wasn't requested" Bug: webrtc:11999 Change-Id: I06045259b1cee2c21bfdabbafff3892b57c82a84 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/230543 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34969}