Enabling unit tests for NetEq4 in the bots
The unit tests for NetEq4 are made a part of audio_coding_unittests.
The bit-exactness tests are disabled due to problems in iLBC. See
https://code.google.com/p/webrtc/issues/detail?id=281.
A few smaller fixes for valgrind errors and bot failures are included.
Some of the fixes are adpted from
http://webrtc-codereview.appspot.com/1072008/.
Review URL: https://webrtc-codereview.appspot.com/1063012
git-svn-id: http://webrtc.googlecode.com/svn/trunk@3432 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_coding/neteq4/neteq_impl.cc b/webrtc/modules/audio_coding/neteq4/neteq_impl.cc
index 205829f..e16f083 100644
--- a/webrtc/modules/audio_coding/neteq4/neteq_impl.cc
+++ b/webrtc/modules/audio_coding/neteq4/neteq_impl.cc
@@ -1101,6 +1101,7 @@
assert(*operation == kNormal || *operation == kAccelerate ||
*operation == kMerge || *operation == kPreemptiveExpand);
packet_list->pop_front();
+ int payload_length = packet->payload_length;
int16_t decode_length;
if (!packet->primary) {
// This is a redundant payload; call the special decoder method.
@@ -1136,7 +1137,7 @@
" samples per channel)";
} else if (decode_length < 0) {
// Error.
- LOG_FERR2(LS_WARNING, Decode, decode_length, packet->payload_length);
+ LOG_FERR2(LS_WARNING, Decode, decode_length, payload_length);
*decoded_length = -1;
PacketBuffer::DeleteAllPackets(packet_list);
break;