Commit c7a28b70 authored by Satoru KUMA's avatar Satoru KUMA Committed by David Flynn
Browse files

attr: initialise predictor neighbour infomation to zero

This addresses a suspected issue with scalable LoD coding.
parent fe2e06e7
......@@ -207,7 +207,13 @@ struct PCCPredictor {
predMode = 0;
}
void init() { neighborCount = 0; }
void init()
{
neighborCount = 0;
memset(
neighbors, 0,
sizeof(PCCNeighborInfo) * kAttributePredictionMaxNeighbourCount);
}
void insertNeighbor(
const uint32_t reference,
......
Markdown is supported
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