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

Side by Side Diff: webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc

Issue 2809153002: Change from WebRtcRTPHeader to RTPHeader in NetEq tests and tools (Closed)
Patch Set: Fixing neteq_rtp_fuzzer Created 3 years, 8 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return source_->NextPacketTime(); 274 return source_->NextPacketTime();
275 } 275 }
276 rtc::Optional<int64_t> NextOutputEventTime() const override { 276 rtc::Optional<int64_t> NextOutputEventTime() const override {
277 return source_->NextOutputEventTime(); 277 return source_->NextOutputEventTime();
278 } 278 }
279 279
280 // Returns the next packet, and throws away upcoming packets that do not match 280 // Returns the next packet, and throws away upcoming packets that do not match
281 // the desired SSRC. 281 // the desired SSRC.
282 std::unique_ptr<PacketData> PopPacket() override { 282 std::unique_ptr<PacketData> PopPacket() override {
283 std::unique_ptr<PacketData> packet_to_return = source_->PopPacket(); 283 std::unique_ptr<PacketData> packet_to_return = source_->PopPacket();
284 RTC_DCHECK(!packet_to_return || 284 RTC_DCHECK(!packet_to_return || packet_to_return->header.ssrc == ssrc_);
285 packet_to_return->header.header.ssrc == ssrc_);
286 // Pre-fetch the next packet with correct SSRC. Hence, |source_| will always 285 // Pre-fetch the next packet with correct SSRC. Hence, |source_| will always
287 // be have a valid packet (or empty if no more packets are available) when 286 // be have a valid packet (or empty if no more packets are available) when
288 // this method returns. 287 // this method returns.
289 FindNextWithCorrectSsrc(); 288 FindNextWithCorrectSsrc();
290 return packet_to_return; 289 return packet_to_return;
291 } 290 }
292 291
293 void AdvanceOutputEvent() override { source_->AdvanceOutputEvent(); } 292 void AdvanceOutputEvent() override { source_->AdvanceOutputEvent(); }
294 293
295 bool ended() const override { return source_->ended(); } 294 bool ended() const override { return source_->ended(); }
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 return 0; 476 return 0;
478 } 477 }
479 478
480 } // namespace 479 } // namespace
481 } // namespace test 480 } // namespace test
482 } // namespace webrtc 481 } // namespace webrtc
483 482
484 int main(int argc, char* argv[]) { 483 int main(int argc, char* argv[]) {
485 webrtc::test::RunTest(argc, argv); 484 webrtc::test::RunTest(argc, argv);
486 } 485 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698