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

Unified Diff: webrtc/video/video_send_stream_tests.cc

Issue 2947133002: Fix timing frames and FEC conflict (Closed)
Patch Set: Implement Brandtr@ comments Created 3 years, 6 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/video/video_send_stream_tests.cc
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc
index db1ba4f49014308a01b223958bce9b62db6f52ed..d0c4fd0da9c7ad9d5a1633df32a1e4d0ef3f849b 100644
--- a/webrtc/video/video_send_stream_tests.cc
+++ b/webrtc/video/video_send_stream_tests.cc
@@ -348,9 +348,11 @@ TEST_F(VideoSendStreamTest, SupportsVideoTimingFrames) {
Action OnSendRtp(const uint8_t* packet, size_t length) override {
RTPHeader header;
EXPECT_TRUE(parser_->Parse(packet, length, &header));
- if (header.extension.has_video_timing) {
- observation_complete_.Set();
- }
+ // Only the last packet of the frame must have extension.
+ if (!header.markerBit)
+ return SEND_PACKET;
+ EXPECT_TRUE(header.extension.has_video_timing);
+ observation_complete_.Set();
return SEND_PACKET;
}

Powered by Google App Engine
This is Rietveld 408576698