Setting Opus FEC as default
BUG=3986 R=mflodman@webrtc.org, tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/26899004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7710 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
966a708b93
commit
4ef22d1d29
@ -541,7 +541,9 @@ void WebRtcVoiceEngine::ConstructCodecs() {
|
||||
codec.params[kCodecParamMaxPTime] =
|
||||
rtc::ToString(kPreferredMaxPTime);
|
||||
}
|
||||
// TODO(hellner): Add ptime, sprop-stereo, stereo and useinbandfec
|
||||
codec.SetParam(kCodecParamUseInbandFec, "1");
|
||||
|
||||
// TODO(hellner): Add ptime, sprop-stereo, and stereo
|
||||
// when they can be set to values other than the default.
|
||||
}
|
||||
codecs_.push_back(codec);
|
||||
|
@ -3276,6 +3276,8 @@ TEST(WebRtcVoiceEngineTest, HasCorrectCodecs) {
|
||||
EXPECT_EQ("10", it->params.find("minptime")->second);
|
||||
ASSERT_TRUE(it->params.find("maxptime") != it->params.end());
|
||||
EXPECT_EQ("60", it->params.find("maxptime")->second);
|
||||
ASSERT_TRUE(it->params.find("useinbandfec") != it->params.end());
|
||||
EXPECT_EQ("1", it->params.find("useinbandfec")->second);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user