OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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/rtp_rtcp/source/rtp_format_vp8.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h" |
12 | 12 |
13 #include <assert.h> // assert | 13 #include <assert.h> // assert |
14 #include <string.h> // memcpy | 14 #include <string.h> // memcpy |
15 | 15 |
16 #include <limits> | 16 #include <limits> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
| 20 #include "webrtc/base/logging.h" |
20 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" | 21 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" |
21 #include "webrtc/rtc_base/logging.h" | |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 namespace { | 24 namespace { |
25 int ParseVP8PictureID(RTPVideoHeaderVP8* vp8, | 25 int ParseVP8PictureID(RTPVideoHeaderVP8* vp8, |
26 const uint8_t** data, | 26 const uint8_t** data, |
27 size_t* data_length, | 27 size_t* data_length, |
28 size_t* parsed_bytes) { | 28 size_t* parsed_bytes) { |
29 assert(vp8 != NULL); | 29 assert(vp8 != NULL); |
30 if (*data_length == 0) | 30 if (*data_length == 0) |
31 return -1; | 31 return -1; |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 if (ParseVP8FrameSize(parsed_payload, payload_data, payload_data_length) != | 698 if (ParseVP8FrameSize(parsed_payload, payload_data, payload_data_length) != |
699 0) { | 699 0) { |
700 return false; | 700 return false; |
701 } | 701 } |
702 | 702 |
703 parsed_payload->payload = payload_data; | 703 parsed_payload->payload = payload_data; |
704 parsed_payload->payload_length = payload_data_length; | 704 parsed_payload->payload_length = payload_data_length; |
705 return true; | 705 return true; |
706 } | 706 } |
707 } // namespace webrtc | 707 } // namespace webrtc |
OLD | NEW |