Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: remoting/codec/audio_decoder_opus.cc

Issue 2230193002: remoting: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/jni/jni_display_handler.cc ('k') | remoting/codec/audio_encoder_opus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « remoting/client/jni/jni_display_handler.cc ('k') | remoting/codec/audio_encoder_opus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698