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

Side by Side Diff: webrtc/modules/audio_coding/codecs/audio_decoder.cc

Issue 1225173002: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 int AudioDecoder::DecodeRedundantInternal(const uint8_t* encoded, 49 int AudioDecoder::DecodeRedundantInternal(const uint8_t* encoded,
50 size_t encoded_len, 50 size_t encoded_len,
51 int sample_rate_hz, int16_t* decoded, 51 int sample_rate_hz, int16_t* decoded,
52 SpeechType* speech_type) { 52 SpeechType* speech_type) {
53 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, 53 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded,
54 speech_type); 54 speech_type);
55 } 55 }
56 56
57 bool AudioDecoder::HasDecodePlc() const { return false; } 57 bool AudioDecoder::HasDecodePlc() const { return false; }
58 58
59 int AudioDecoder::DecodePlc(int num_frames, int16_t* decoded) { return 0; } 59 size_t AudioDecoder::DecodePlc(size_t num_frames, int16_t* decoded) {
60 return 0;
61 }
60 62
61 int AudioDecoder::IncomingPacket(const uint8_t* payload, 63 int AudioDecoder::IncomingPacket(const uint8_t* payload,
62 size_t payload_len, 64 size_t payload_len,
63 uint16_t rtp_sequence_number, 65 uint16_t rtp_sequence_number,
64 uint32_t rtp_timestamp, 66 uint32_t rtp_timestamp,
65 uint32_t arrival_timestamp) { 67 uint32_t arrival_timestamp) {
66 return 0; 68 return 0;
67 } 69 }
68 70
69 int AudioDecoder::ErrorCode() { return 0; } 71 int AudioDecoder::ErrorCode() { return 0; }
(...skipping 25 matching lines...) Expand all
95 return kSpeech; 97 return kSpeech;
96 case 2: 98 case 2:
97 return kComfortNoise; 99 return kComfortNoise;
98 default: 100 default:
99 assert(false); 101 assert(false);
100 return kSpeech; 102 return kSpeech;
101 } 103 }
102 } 104 }
103 105
104 } // namespace webrtc 106 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698