Fixing lint errors in NetEq4
Just taking care of a few old lint errors. R=tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/6799004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5359 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -74,8 +74,7 @@ void AudioMultiVector::PushBackInterleaved(const int16_t* append_this,
|
||||
return;
|
||||
}
|
||||
size_t length_per_channel = length / num_channels_;
|
||||
int16_t* temp_array =
|
||||
new int16_t[length_per_channel]; // Intermediate storage.
|
||||
int16_t* temp_array = new int16_t[length_per_channel]; // Temporary storage.
|
||||
for (size_t channel = 0; channel < num_channels_; ++channel) {
|
||||
// Copy elements to |temp_array|.
|
||||
// Set |source_ptr| to first element of this channel.
|
||||
|
@@ -1182,7 +1182,6 @@ void NetEqDecodingTest::WrapTest(uint16_t start_seq_no,
|
||||
// Expect delay (in samples) to be less than 2 packets.
|
||||
EXPECT_LE(timestamp - neteq_->PlayoutTimestamp(),
|
||||
static_cast<uint32_t>(kSamples * 2));
|
||||
|
||||
}
|
||||
// Make sure we have actually tested wrap-around.
|
||||
ASSERT_EQ(expect_seq_no_wrap, seq_no_wrapped);
|
||||
@@ -1216,4 +1215,4 @@ TEST_F(NetEqDecodingTest, TimestampAndSequenceNumberWrap) {
|
||||
WrapTest(0xFFFF - 10, 0xFFFFFFFF - 5000, drop_seq_numbers, true, true);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace webrtc
|
||||
|
@@ -65,4 +65,4 @@ class Normal {
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
#endif // SRC_MODULES_AUDIO_CODING_NETEQ4_NORMAL_H_
|
||||
#endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ4_NORMAL_H_
|
||||
|
@@ -54,4 +54,4 @@ void RandomVector::IncreaseSeedIncrement(int16_t increase_by) {
|
||||
seed_increment_+= increase_by;
|
||||
seed_increment_ &= kRandomTableSize - 1;
|
||||
}
|
||||
}
|
||||
} // namespace webrtc
|
||||
|
@@ -10,9 +10,10 @@
|
||||
|
||||
#include "webrtc/modules/audio_coding/neteq4/rtcp.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <string.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
|
||||
#include "webrtc/modules/interface/module_common_types.h"
|
||||
|
||||
|
Reference in New Issue
Block a user