Improve neteq_rtp_fuzzer
This change lets the fuzzer modify the first few bytes of the RTP payload. One of the benefits is that it can cover the RED header splitter functionality. The CL also fixes an issue found while running the fuzzer locally. Bug: webrtc:11640 Change-Id: I7ca73676440897a14a0aaca796f70d381e016575 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185819 Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32242}
This commit is contained in:
committed by
Commit Bot
parent
be0aec2174
commit
df2a4654a0
@ -104,7 +104,9 @@ bool RedPayloadSplitter::SplitRed(PacketList* packet_list) {
|
||||
payload_length -= kRedHeaderLength;
|
||||
}
|
||||
// Store in new list of packets.
|
||||
new_headers.push_back(new_header);
|
||||
if (new_header.payload_length > 0) {
|
||||
new_headers.push_back(new_header);
|
||||
}
|
||||
}
|
||||
|
||||
if (new_headers.size() <= kMaxRedBlocks) {
|
||||
|
||||
Reference in New Issue
Block a user