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

Side by Side Diff: remoting/codec/audio_encoder_opus.cc

Issue 2463603002: Remove the use of STLDeleteContainerPointers from ScopedVector. (Closed)
Patch Set: reparent Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « media/base/multi_channel_resampler.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/codec/audio_encoder_opus.h" 5 #include "remoting/codec/audio_encoder_opus.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/stl_util.h"
9 #include "base/time/time.h" 10 #include "base/time/time.h"
10 #include "media/base/audio_bus.h" 11 #include "media/base/audio_bus.h"
11 #include "media/base/multi_channel_resampler.h" 12 #include "media/base/multi_channel_resampler.h"
12 #include "third_party/opus/src/include/opus.h" 13 #include "third_party/opus/src/include/opus.h"
13 14
14 namespace remoting { 15 namespace remoting {
15 16
16 namespace { 17 namespace {
17 18
18 // Output 160 kb/s bitrate. 19 // Output 160 kb/s bitrate.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 233 }
233 234
234 // Return nullptr if there's nothing in the packet. 235 // Return nullptr if there's nothing in the packet.
235 if (encoded_packet->data_size() == 0) 236 if (encoded_packet->data_size() == 0)
236 return nullptr; 237 return nullptr;
237 238
238 return encoded_packet; 239 return encoded_packet;
239 } 240 }
240 241
241 } // namespace remoting 242 } // namespace remoting
OLDNEW
« no previous file with comments | « media/base/multi_channel_resampler.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698