diff options
Diffstat (limited to 'webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.cc')
-rw-r--r-- | webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.cc b/webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.cc index c92cfa48a7..9eba205a88 100644 --- a/webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.cc +++ b/webrtc/modules/video_coding/codecs/test/predictive_packet_manipulator.cc @@ -19,13 +19,11 @@ namespace webrtc { namespace test { PredictivePacketManipulator::PredictivePacketManipulator( - PacketReader* packet_reader, const NetworkingConfig& config) - : PacketManipulatorImpl(packet_reader, config, false) { -} - -PredictivePacketManipulator::~PredictivePacketManipulator() { -} + PacketReader* packet_reader, + const NetworkingConfig& config) + : PacketManipulatorImpl(packet_reader, config, false) {} +PredictivePacketManipulator::~PredictivePacketManipulator() {} void PredictivePacketManipulator::AddRandomResult(double result) { assert(result >= 0.0 && result <= 1.0); @@ -33,8 +31,9 @@ void PredictivePacketManipulator::AddRandomResult(double result) { } double PredictivePacketManipulator::RandomUniform() { - if(random_results_.size() == 0u) { - fprintf(stderr, "No more stored results, please make sure AddRandomResult()" + if (random_results_.size() == 0u) { + fprintf(stderr, + "No more stored results, please make sure AddRandomResult()" "is called same amount of times you're going to invoke the " "RandomUniform() function, i.e. once per packet.\n"); assert(false); @@ -45,4 +44,4 @@ double PredictivePacketManipulator::RandomUniform() { } } // namespace test -} // namespace webrtcc +} // namespace webrtc |