mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-17 15:47:53 +01:00
Stop using invalid payload type 200 in audio/red unit test
and fix the follow-up mistake in the test BUG=None Change-Id: Id7a20769cc1d03dd8154564f948e8138ff8c4e74 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/315220 Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40528}
This commit is contained in:
parent
63dc56cff0
commit
240e783d7f
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ class AudioEncoderCopyRedTest : public ::testing::Test {
|
||||||
timestamp_(4711),
|
timestamp_(4711),
|
||||||
sample_rate_hz_(16000),
|
sample_rate_hz_(16000),
|
||||||
num_audio_samples_10ms(sample_rate_hz_ / 100),
|
num_audio_samples_10ms(sample_rate_hz_ / 100),
|
||||||
red_payload_type_(200) {
|
red_payload_type_(63) {
|
||||||
AudioEncoderCopyRed::Config config;
|
AudioEncoderCopyRed::Config config;
|
||||||
config.payload_type = red_payload_type_;
|
config.payload_type = red_payload_type_;
|
||||||
config.speech_encoder = std::unique_ptr<AudioEncoder>(mock_encoder_);
|
config.speech_encoder = std::unique_ptr<AudioEncoder>(mock_encoder_);
|
||||||
|
@ -475,7 +475,7 @@ TEST_F(AudioEncoderCopyRedTest, CheckRFC2198Header) {
|
||||||
EXPECT_EQ(encoded_[2] & 0x3u, encoded_info_.redundant[1].encoded_bytes >> 8);
|
EXPECT_EQ(encoded_[2] & 0x3u, encoded_info_.redundant[1].encoded_bytes >> 8);
|
||||||
EXPECT_EQ(encoded_[3], encoded_info_.redundant[1].encoded_bytes & 0xff);
|
EXPECT_EQ(encoded_[3], encoded_info_.redundant[1].encoded_bytes & 0xff);
|
||||||
|
|
||||||
EXPECT_EQ(encoded_[4], primary_payload_type | 0x80);
|
EXPECT_EQ(encoded_[4], primary_payload_type);
|
||||||
timestamp_delta = encoded_info_.encoded_timestamp -
|
timestamp_delta = encoded_info_.encoded_timestamp -
|
||||||
encoded_info_.redundant[1].encoded_timestamp;
|
encoded_info_.redundant[1].encoded_timestamp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue