Index: webrtc/modules/audio_coding/neteq/expand_unittest.cc |
diff --git a/webrtc/modules/audio_coding/neteq/expand_unittest.cc b/webrtc/modules/audio_coding/neteq/expand_unittest.cc |
index 1441704102dd41d8179d3ffc8d05a568fc1d43a3..1b4f422042ad00c401b02ca5b717592134abc28d 100644 |
--- a/webrtc/modules/audio_coding/neteq/expand_unittest.cc |
+++ b/webrtc/modules/audio_coding/neteq/expand_unittest.cc |
@@ -93,8 +93,9 @@ class ExpandTest : public ::testing::Test { |
ASSERT_TRUE(input_file_.Seek(speech_start_samples)); |
// Pre-load the sync buffer with speech data. |
- ASSERT_TRUE( |
- input_file_.Read(sync_buffer_.Size(), &sync_buffer_.Channel(0)[0])); |
+ std::unique_ptr<int16_t[]> temp(new int16_t[sync_buffer_.Size()]); |
+ ASSERT_TRUE(input_file_.Read(sync_buffer_.Size(), temp.get())); |
+ sync_buffer_.Channel(0).OverwriteAt(temp.get(), sync_buffer_.Size(), 0); |
ASSERT_EQ(1u, num_channels_) << "Fix: Must populate all channels."; |
} |