| 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/main/source/session_info.h" | 11 #include "webrtc/modules/video_coding/main/source/session_info.h" |
| 12 | 12 |
| 13 #include "webrtc/modules/video_coding/main/source/packet.h" | 13 #include "webrtc/modules/video_coding/main/source/packet.h" |
| 14 #include "webrtc/system_wrappers/interface/logging.h" | 14 #include "webrtc/system_wrappers/include/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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 if (empty_seq_num_high_ == -1) | 571 if (empty_seq_num_high_ == -1) |
| 572 empty_seq_num_high_ = seq_num; | 572 empty_seq_num_high_ = seq_num; |
| 573 else | 573 else |
| 574 empty_seq_num_high_ = LatestSequenceNumber(seq_num, empty_seq_num_high_); | 574 empty_seq_num_high_ = LatestSequenceNumber(seq_num, empty_seq_num_high_); |
| 575 if (empty_seq_num_low_ == -1 || IsNewerSequenceNumber(empty_seq_num_low_, | 575 if (empty_seq_num_low_ == -1 || IsNewerSequenceNumber(empty_seq_num_low_, |
| 576 seq_num)) | 576 seq_num)) |
| 577 empty_seq_num_low_ = seq_num; | 577 empty_seq_num_low_ = seq_num; |
| 578 } | 578 } |
| 579 | 579 |
| 580 } // namespace webrtc | 580 } // namespace webrtc |
| OLD | NEW |