webrtc/modules/audio_coding/codecs/cng
Jakob Ivarsson 0fd67312ea Reset the speech encoder when creating a comfort noise encoder.
This is to make sure that the two encoders are "in sync" (the CNG
encoder can be created from an existing speech encoder).

This is a speculative fix for a crash in the CNG encoder where a packet
is unexpectedly emitted from the speech encoder.

Bug: webrtc:42225071
Change-Id: I42571e56e032897f7f083f04d785f6a08ebfb813
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/355160
Commit-Queue: Jakob Ivarsson‎ <jakobi@webrtc.org>
Reviewed-by: Tomas Lundqvist <tomasl@google.com>
Cr-Commit-Position: refs/heads/main@{#42516}
2024-06-20 11:02:26 +00:00
..
audio_encoder_cng.cc Reset the speech encoder when creating a comfort noise encoder. 2024-06-20 11:02:26 +00:00
audio_encoder_cng.h Format almost everything. 2019-07-08 13:45:15 +00:00
audio_encoder_cng_unittest.cc Reland "Remove RTC_DISALLOW_COPY_AND_ASSIGN usages completely" 2022-01-27 12:55:44 +00:00
cng_unittest.cc Rename several more tests that use EXPECT_DEATH to *DeathTest. 2020-05-18 16:10:04 +00:00
webrtc_cng.cc Use backticks not vertical bars to denote variables in comments 2021-08-10 10:40:03 +00:00
webrtc_cng.h Use backticks not vertical bars to denote variables in comments for /modules/audio_coding 2021-08-02 10:45:40 +00:00