Index: webrtc/modules/video_coding/video_packet_buffer_unittest.cc |
diff --git a/webrtc/modules/video_coding/video_packet_buffer_unittest.cc b/webrtc/modules/video_coding/video_packet_buffer_unittest.cc |
index 86d54ebafe84c2251a0fc9a18513e4a040327f22..b332d8ccb4cad9cc0c9e2eb197422c2e0d88d363 100644 |
--- a/webrtc/modules/video_coding/video_packet_buffer_unittest.cc |
+++ b/webrtc/modules/video_coding/video_packet_buffer_unittest.cc |
@@ -501,5 +501,24 @@ TEST_F(TestPacketBuffer, OneH264FrameFillBuffer) { |
CheckFrame(0); |
} |
+TEST_F(TestPacketBuffer, OneH264FrameMaxSeqNum) { |
+ VCMPacket packet; |
+ packet.seqNum = 65534; |
+ packet.codec = kVideoCodecH264; |
+ packet.dataPtr = nullptr; |
+ packet.sizeBytes = 0; |
+ packet.is_first_packet_in_frame = true; |
+ packet.markerBit = false; |
+ packet_buffer_->InsertPacket(&packet); |
+ |
+ packet.is_first_packet_in_frame = false; |
+ packet.seqNum = 65535; |
+ packet.markerBit = true; |
+ packet_buffer_->InsertPacket(&packet); |
+ |
+ EXPECT_EQ(1UL, frames_from_callback_.size()); |
+ CheckFrame(65534); |
+} |
+ |
} // namespace video_coding |
} // namespace webrtc |