Commit a279e167 authored by Toshiyasu Sugio's avatar Toshiyasu Sugio Committed by David Flynn
Browse files

raht/m47405: fix inverse transform of single point

This commit fixes a failure to process a point cloud containing a
single point.
parent 4b80ca8f
......@@ -282,6 +282,12 @@ regionAdaptiveHierarchicalInverseTransform(
attributesTransformed[k] *= quantStepSizeLuma2;
}
// Handle case when there is only a single point
if (N == 1) {
for (size_t k = 0; k < attribCount; k++)
attributes[k] = attributesTransformed[k];
}
// Re-obtain weights at the decoder by partially executing the encoder
d = 0;
while (N > 1) {
......
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