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

Unified Diff: webrtc/modules/video_coding/test/rtp_player.cc

Issue 1942823002: Remove webrtc/base/scoped_ptr.h (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fix additional scoped_ptr uses that had been added Created 4 years, 7 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
Index: webrtc/modules/video_coding/test/rtp_player.cc
diff --git a/webrtc/modules/video_coding/test/rtp_player.cc b/webrtc/modules/video_coding/test/rtp_player.cc
index 816960cbe008ceaebf88e4373c403be4eb6230e4..87b6c9056081e4e5d9d8ffb689c7a955517986c3 100644
--- a/webrtc/modules/video_coding/test/rtp_player.cc
+++ b/webrtc/modules/video_coding/test/rtp_player.cc
@@ -12,6 +12,7 @@
#include <stdio.h>
+#include <cstdlib>
#include <map>
#include <memory>
@@ -342,7 +343,7 @@ class RtpPlayerImpl : public RtpPlayerInterface {
assert(packet_source);
assert(packet_source->get());
packet_source_.swap(*packet_source);
- srand(321);
+ std::srand(321);
}
virtual ~RtpPlayerImpl() {}
@@ -435,7 +436,8 @@ class RtpPlayerImpl : public RtpPlayerInterface {
if (no_loss_startup_ > 0) {
no_loss_startup_--;
- } else if ((rand() + 1.0) / (RAND_MAX + 1.0) < loss_rate_) { // NOLINT
+ } else if ((std::rand() + 1.0) / (RAND_MAX + 1.0) <
+ loss_rate_) { // NOLINT
uint16_t seq_num = header.sequenceNumber;
lost_packets_.AddPacket(new RawRtpPacket(data, length, ssrc, seq_num));
DEBUG_LOG1("Dropped packet: %d!", header.header.sequenceNumber);
« no previous file with comments | « webrtc/modules/video_coding/packet_buffer.h ('k') | webrtc/modules/video_processing/util/noise_estimation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698