Commit 1bfa8665 authored by Pablo Gil Pereira's avatar Pablo Gil Pereira
Browse files

Fix gather redundancy seg fault

parent 6b093d47
Pipeline #4889 failed with stages
in 34 seconds
......@@ -17,10 +17,14 @@ static void gather_redundancy_packets(const PrrtBlock *block_ptr, gf *const *fec
continue;
}
while(idx_p[m] != -1) {
while(idx_p[m] != -1 && m < n) {
m++;
}
if(m == n) {
break;
}
PrrtPacket_copy_payload_to_buffer(fec[m], packet, PRRT_PACKET_REDUNDANCY_HEADER_SIZE);
idx_p[m] = packet->index;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment