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

Unified Diff: content/renderer/media/audio_track_recorder.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/media/audio_track_recorder.cc
diff --git a/content/renderer/media/audio_track_recorder.cc b/content/renderer/media/audio_track_recorder.cc
index dc624ace8af80ea056791f9061b3cde1aa67d4ca..99e3b5bc8202e32cdaaff70ea32c94d4df67db43 100644
--- a/content/renderer/media/audio_track_recorder.cc
+++ b/content/renderer/media/audio_track_recorder.cc
@@ -4,7 +4,10 @@
#include "content/renderer/media/audio_track_recorder.h"
+#include <stdint.h>
+
#include "base/bind.h"
+#include "base/macros.h"
#include "base/stl_util.h"
#include "media/audio/audio_parameters.h"
#include "media/base/audio_bus.h"
@@ -230,7 +233,7 @@ bool AudioTrackRecorder::AudioEncoder::EncodeFromFilledBuffer(
out->resize(OPUS_MAX_PAYLOAD_SIZE);
const opus_int32 result = opus_encode_float(
opus_encoder_, buffer_.get(), frames_per_buffer_,
- reinterpret_cast<uint8*>(string_as_array(out)), OPUS_MAX_PAYLOAD_SIZE);
+ reinterpret_cast<uint8_t*>(string_as_array(out)), OPUS_MAX_PAYLOAD_SIZE);
if (result > 1) {
// TODO(ajose): Investigate improving this. http://crbug.com/547918
out->resize(result);
« no previous file with comments | « content/renderer/media/audio_repetition_detector_unittest.cc ('k') | content/renderer/media/audio_track_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698