OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "webrtc/base/array_view.h" | |
14 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 13 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
15 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 14 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
16 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 15 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 16 #include "webrtc/rtc_base/array_view.h" |
17 #include "webrtc/voice_engine/transport_feedback_packet_loss_tracker.h" | 17 #include "webrtc/voice_engine/transport_feedback_packet_loss_tracker.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 template <typename T> | 23 template <typename T> |
24 T FuzzInput(const uint8_t** data, size_t* size) { | 24 T FuzzInput(const uint8_t** data, size_t* size) { |
25 RTC_CHECK_GE(*size, sizeof(T)); | 25 RTC_CHECK_GE(*size, sizeof(T)); |
26 T rc = ByteReader<T>::ReadBigEndian(*data); | 26 T rc = ByteReader<T>::ReadBigEndian(*data); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 while (may_continue) { | 270 while (may_continue) { |
271 may_continue = FuzzPacketSendBlock(tracker, &data, &size, &time_ms); | 271 may_continue = FuzzPacketSendBlock(tracker, &data, &size, &time_ms); |
272 if (!may_continue) { | 272 if (!may_continue) { |
273 return; | 273 return; |
274 } | 274 } |
275 may_continue = FuzzTransportFeedbackBlock(tracker, &data, &size); | 275 may_continue = FuzzTransportFeedbackBlock(tracker, &data, &size); |
276 } | 276 } |
277 } | 277 } |
278 | 278 |
279 } // namespace webrtc | 279 } // namespace webrtc |
OLD | NEW |