OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 } | 494 } |
495 | 495 |
496 packet.seqNum = kStartSize - 1; | 496 packet.seqNum = kStartSize - 1; |
497 packet.markerBit = true; | 497 packet.markerBit = true; |
498 packet_buffer_->InsertPacket(&packet); | 498 packet_buffer_->InsertPacket(&packet); |
499 | 499 |
500 EXPECT_EQ(1UL, frames_from_callback_.size()); | 500 EXPECT_EQ(1UL, frames_from_callback_.size()); |
501 CheckFrame(0); | 501 CheckFrame(0); |
502 } | 502 } |
503 | 503 |
| 504 TEST_F(TestPacketBuffer, OneH264FrameMaxSeqNum) { |
| 505 VCMPacket packet; |
| 506 packet.seqNum = 65534; |
| 507 packet.codec = kVideoCodecH264; |
| 508 packet.dataPtr = nullptr; |
| 509 packet.sizeBytes = 0; |
| 510 packet.is_first_packet_in_frame = true; |
| 511 packet.markerBit = false; |
| 512 packet_buffer_->InsertPacket(&packet); |
| 513 |
| 514 packet.is_first_packet_in_frame = false; |
| 515 packet.seqNum = 65535; |
| 516 packet.markerBit = true; |
| 517 packet_buffer_->InsertPacket(&packet); |
| 518 |
| 519 EXPECT_EQ(1UL, frames_from_callback_.size()); |
| 520 CheckFrame(65534); |
| 521 } |
| 522 |
504 } // namespace video_coding | 523 } // namespace video_coding |
505 } // namespace webrtc | 524 } // namespace webrtc |
OLD | NEW |