OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
11 #include "webrtc/modules/video_coding/session_info.h" | 11 #include "webrtc/modules/video_coding/session_info.h" |
12 | 12 |
13 #include "webrtc/base/logging.h" | |
14 #include "webrtc/modules/video_coding/packet.h" | 13 #include "webrtc/modules/video_coding/packet.h" |
| 14 #include "webrtc/rtc_base/logging.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 uint16_t BufferToUWord16(const uint8_t* dataBuffer) { | 20 uint16_t BufferToUWord16(const uint8_t* dataBuffer) { |
21 return (dataBuffer[0] << 8) | dataBuffer[1]; | 21 return (dataBuffer[0] << 8) | dataBuffer[1]; |
22 } | 22 } |
23 | 23 |
24 } // namespace | 24 } // namespace |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 if (empty_seq_num_high_ == -1) | 518 if (empty_seq_num_high_ == -1) |
519 empty_seq_num_high_ = seq_num; | 519 empty_seq_num_high_ = seq_num; |
520 else | 520 else |
521 empty_seq_num_high_ = LatestSequenceNumber(seq_num, empty_seq_num_high_); | 521 empty_seq_num_high_ = LatestSequenceNumber(seq_num, empty_seq_num_high_); |
522 if (empty_seq_num_low_ == -1 || | 522 if (empty_seq_num_low_ == -1 || |
523 IsNewerSequenceNumber(empty_seq_num_low_, seq_num)) | 523 IsNewerSequenceNumber(empty_seq_num_low_, seq_num)) |
524 empty_seq_num_low_ = seq_num; | 524 empty_seq_num_low_ = seq_num; |
525 } | 525 } |
526 | 526 |
527 } // namespace webrtc | 527 } // namespace webrtc |
OLD | NEW |