| Index: remoting/codec/audio_decoder_opus.cc
|
| diff --git a/remoting/codec/audio_decoder_opus.cc b/remoting/codec/audio_decoder_opus.cc
|
| index 5d05d3c3c5005142f5febe46ef2cb2d9b27e11cb..5744487979efe0af4aed0eb548e198f4c533737d 100644
|
| --- a/remoting/codec/audio_decoder_opus.cc
|
| +++ b/remoting/codec/audio_decoder_opus.cc
|
| @@ -107,13 +107,13 @@ std::unique_ptr<AudioPacket> AudioDecoderOpus::Decode(
|
| int buffer_pos = 0;
|
|
|
| for (int i = 0; i < packet->data_size(); ++i) {
|
| - int16_t* pcm_buffer =
|
| - reinterpret_cast<int16_t*>(string_as_array(decoded_data) + buffer_pos);
|
| + int16_t* pcm_buffer = reinterpret_cast<int16_t*>(
|
| + base::string_as_array(decoded_data) + buffer_pos);
|
| CHECK_LE(buffer_pos + max_frame_bytes,
|
| static_cast<int>(decoded_data->size()));
|
| std::string* frame = packet->mutable_data(i);
|
| unsigned char* frame_data =
|
| - reinterpret_cast<unsigned char*>(string_as_array(frame));
|
| + reinterpret_cast<unsigned char*>(base::string_as_array(frame));
|
| int result = opus_decode(decoder_, frame_data, frame->size(),
|
| pcm_buffer, max_frame_samples, 0);
|
| if (result < 0) {
|
|
|