Commit c4cd4b27 authored by David Flynn's avatar David Flynn
Browse files

geometry/bypass: fix crash with empty reconstructedDataPath

This commit fixes a null pointer dereference in cases where no
reconstructed point cloud output is specified.
parent 81011d27
......@@ -240,7 +240,8 @@ class PCCTMC3Encoder3 {
if (params.geometryCodec == GeometryCodecType::kBypass) {
*reconstructedCloud = pointCloud;
if (reconstructedCloud)
*reconstructedCloud = pointCloud;
else {
reconstructedPointCloud(params, reconstructedCloud);
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