Index: webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc |
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc |
index ba50b0c678022e72f884f20bc031423a96f2cd15..a3cd2cee6347ad496cf73c4664108f8efab1c20f 100644 |
--- a/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc |
+++ b/webrtc/modules/audio_coding/codecs/isac/fix/test/kenny.cc |
@@ -62,7 +62,8 @@ void get_arrival_time(int current_framesamples, /* samples */ |
/* everything in samples */ |
BN_data->sample_count = BN_data->sample_count + current_framesamples; |
- BN_data->arrival_time += ((packet_size + HeaderSize) * 8 * FS) / (bottleneck + HeaderRate); |
+ BN_data->arrival_time += static_cast<uint32_t>( |
kwiberg-webrtc
2015/06/08 13:09:38
checked_cast, so that it will actually fail if out
Peter Kasting
2015/06/08 20:44:29
Can this really ever be out-of-bounds in this test
kwiberg-webrtc
2015/06/09 00:48:12
I see your point. dchecked_cast, then? (Yes, I kno
Peter Kasting
2015/06/09 01:18:14
We could do this if you'd like:
int arrival_tim
kwiberg-webrtc
2015/06/09 01:28:26
Too much work, and too verbose. It'll only really
Peter Kasting
2015/06/09 02:10:13
Hmmm. I'm not terribly keen on adding something c
kwiberg-webrtc
2015/06/09 10:56:31
I would have thought it was obvious---there's only
Peter Kasting
2015/06/10 01:09:54
Acknowledged.
|
+ ((packet_size + HeaderSize) * 8 * FS) / (bottleneck + HeaderRate)); |
BN_data->send_time += current_framesamples; |
if (BN_data->arrival_time < BN_data->sample_count) |