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

Unified Diff: media/cast/sender/audio_encoder.cc

Issue 2181163002: media: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « media/base/mac/videotoolbox_helpers.cc ('k') | media/cast/sender/h264_vt_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/audio_encoder.cc
diff --git a/media/cast/sender/audio_encoder.cc b/media/cast/sender/audio_encoder.cc
index 6d93d17e596615d5bb48723df73cdfe25b667eeb..37410a68bee2e4cfa2e1dc801aa53f7050617122 100644
--- a/media/cast/sender/audio_encoder.cc
+++ b/media/cast/sender/audio_encoder.cc
@@ -542,7 +542,7 @@ class AudioEncoder::AppleAacImpl : public AudioEncoder::ImplBase {
source_offset * sizeof(float) % AudioBus::kChannelAlignment == 0) {
DCHECK_EQ(buffer_fill_offset, 0);
for (int ch = 0; ch < audio_bus->channels(); ++ch) {
- auto samples = const_cast<float*>(audio_bus->channel(ch));
+ auto* samples = const_cast<float*>(audio_bus->channel(ch));
input_bus_->SetChannelData(ch, samples + source_offset);
}
return;
@@ -605,9 +605,9 @@ class AudioEncoder::AppleAacImpl : public AudioEncoder::ImplBase {
AudioStreamPacketDescription** out_packet_desc,
void* in_encoder) {
DCHECK(in_encoder);
- auto encoder = reinterpret_cast<AppleAacImpl*>(in_encoder);
- auto input_buffer = encoder->input_buffer_.get();
- auto input_bus = encoder->input_bus_.get();
+ auto* encoder = reinterpret_cast<AppleAacImpl*>(in_encoder);
+ auto* input_buffer = encoder->input_buffer_.get();
+ auto* input_bus = encoder->input_bus_.get();
DCHECK_EQ(static_cast<int>(*io_num_packets), kAccessUnitSamples);
DCHECK_EQ(io_data->mNumberBuffers,
@@ -644,8 +644,8 @@ class AudioEncoder::AppleAacImpl : public AudioEncoder::ImplBase {
UInt32* out_size) {
DCHECK(in_encoder);
DCHECK(in_buffer);
- auto encoder = reinterpret_cast<const AppleAacImpl*>(in_encoder);
- auto buffer = reinterpret_cast<const std::string::value_type*>(in_buffer);
+ auto* encoder = reinterpret_cast<const AppleAacImpl*>(in_encoder);
+ auto* buffer = reinterpret_cast<const std::string::value_type*>(in_buffer);
std::string* const output_buffer = encoder->output_buffer_;
DCHECK(output_buffer);
« no previous file with comments | « media/base/mac/videotoolbox_helpers.cc ('k') | media/cast/sender/h264_vt_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698