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

Unified Diff: content/renderer/pepper/pepper_audio_encoder_host.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: content/renderer/pepper/pepper_audio_encoder_host.cc
diff --git a/content/renderer/pepper/pepper_audio_encoder_host.cc b/content/renderer/pepper/pepper_audio_encoder_host.cc
index b3e59fd307693a49efb0f7a50879346facac7078..e6b69c68e48bc4f6cd5835c440518f8f2f8cdfb6 100644
--- a/content/renderer/pepper/pepper_audio_encoder_host.cc
+++ b/content/renderer/pepper/pepper_audio_encoder_host.cc
@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+
#include "base/bind.h"
+#include "base/macros.h"
#include "base/memory/shared_memory.h"
#include "content/public/renderer/renderer_ppapi_host.h"
#include "content/renderer/pepper/host_globals.h"
@@ -67,7 +70,7 @@ class PepperAudioEncoderHost::AudioEncoderImpl {
void RequestBitrateChange(uint32_t bitrate);
private:
- scoped_ptr<uint8[]> encoder_memory_;
+ scoped_ptr<uint8_t[]> encoder_memory_;
OpusEncoder* opus_encoder_;
// Initialization parameters, only valid if |encoder_memory_| is not
@@ -111,7 +114,7 @@ bool PepperAudioEncoderHost::AudioEncoderImpl::Initialize(
if (encoder_size < 1)
return false;
- scoped_ptr<uint8[]> encoder_memory(new uint8[encoder_size]);
+ scoped_ptr<uint8_t[]> encoder_memory(new uint8_t[encoder_size]);
opus_encoder_ = reinterpret_cast<OpusEncoder*>(encoder_memory.get());
if (opus_encoder_init(opus_encoder_, parameters.input_sample_rate,
« no previous file with comments | « content/renderer/pepper/pepper_audio_encoder_host.h ('k') | content/renderer/pepper/pepper_audio_input_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698