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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/util/utility.c

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 3 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 break; 129 break;
130 } 130 }
131 } 131 }
132 return paramLenght; 132 return paramLenght;
133 } 133 }
134 134
135 void 135 void
136 get_arrival_time( 136 get_arrival_time(
137 int current_framesamples, /* samples */ 137 int current_framesamples, /* samples */
138 int packet_size, /* bytes */ 138 size_t packet_size, /* bytes */
139 int bottleneck, /* excluding headers; bits/s */ 139 int bottleneck, /* excluding headers; bits/s */
140 BottleNeckModel* BN_data, 140 BottleNeckModel* BN_data,
141 short senderSampFreqHz, 141 short senderSampFreqHz,
142 short receiverSampFreqHz) 142 short receiverSampFreqHz)
143 { 143 {
144 unsigned int travelTimeMs; 144 unsigned int travelTimeMs;
145 const int headerSizeByte = 35; 145 const int headerSizeByte = 35;
146 146
147 int headerRate; 147 int headerRate;
148 148
(...skipping 20 matching lines...) Expand all
169 } 169 }
170 170
171 BN_data->arrival_time = (BN_data->whenPrevPackLeftMs * 171 BN_data->arrival_time = (BN_data->whenPrevPackLeftMs *
172 (receiverSampFreqHz / 1000)); 172 (receiverSampFreqHz / 1000));
173 173
174 // if (BN_data->arrival_time < BN_data->sample_count) 174 // if (BN_data->arrival_time < BN_data->sample_count)
175 // BN_data->arrival_time = BN_data->sample_count; 175 // BN_data->arrival_time = BN_data->sample_count;
176 176
177 BN_data->rtp_number++; 177 BN_data->rtp_number++;
178 } 178 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698