(Re-land) AudioEncoderDecoderIsac: Merge the two config structs
This reverts commit 599beb86, which in turn reverted 7c324cac. What makes it work this time is that we don't remove the option of setting bit_rate to 0 in order to ask for the default value. COAUTHOR=henrik.lundin@webrtc.org BUG=4228, chromium:478161 R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/48199004 Cr-Commit-Position: refs/heads/master@{#9068}
This commit is contained in:
@ -361,6 +361,7 @@ class AudioDecoderIsacFloatTest : public AudioDecoderTest {
|
||||
AudioEncoderDecoderIsac::Config config;
|
||||
config.payload_type = payload_type_;
|
||||
config.sample_rate_hz = codec_input_rate_hz_;
|
||||
config.adaptive_mode = false;
|
||||
config.frame_size_ms =
|
||||
1000 * static_cast<int>(frame_size_) / codec_input_rate_hz_;
|
||||
|
||||
@ -380,6 +381,7 @@ class AudioDecoderIsacSwbTest : public AudioDecoderTest {
|
||||
AudioEncoderDecoderIsac::Config config;
|
||||
config.payload_type = payload_type_;
|
||||
config.sample_rate_hz = codec_input_rate_hz_;
|
||||
config.adaptive_mode = false;
|
||||
config.frame_size_ms =
|
||||
1000 * static_cast<int>(frame_size_) / codec_input_rate_hz_;
|
||||
|
||||
@ -399,6 +401,7 @@ class AudioDecoderIsacFixTest : public AudioDecoderTest {
|
||||
AudioEncoderDecoderIsacFix::Config config;
|
||||
config.payload_type = payload_type_;
|
||||
config.sample_rate_hz = codec_input_rate_hz_;
|
||||
config.adaptive_mode = false;
|
||||
config.frame_size_ms =
|
||||
1000 * static_cast<int>(frame_size_) / codec_input_rate_hz_;
|
||||
|
||||
|
Reference in New Issue
Block a user