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

Unified Diff: remoting/codec/audio_decoder_opus.cc

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 5 years 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/codec/audio_decoder_opus.h ('k') | remoting/codec/audio_decoder_verbatim.h » ('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 e7bd5ace2040bb998930ea19e1ec692f4f186e32..0bcabcc5653d40227038a90c60068c2e5e30630c 100644
--- a/remoting/codec/audio_decoder_opus.cc
+++ b/remoting/codec/audio_decoder_opus.cc
@@ -4,6 +4,8 @@
#include "remoting/codec/audio_decoder_opus.h"
+#include <stdint.h>
+
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/time/time.h"
@@ -106,8 +108,8 @@ scoped_ptr<AudioPacket> AudioDecoderOpus::Decode(
int buffer_pos = 0;
for (int i = 0; i < packet->data_size(); ++i) {
- int16* pcm_buffer =
- reinterpret_cast<int16*>(string_as_array(decoded_data) + buffer_pos);
+ int16_t* pcm_buffer =
+ reinterpret_cast<int16_t*>(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);
« no previous file with comments | « remoting/codec/audio_decoder_opus.h ('k') | remoting/codec/audio_decoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698