Commit 92fa7132 authored by David Flynn's avatar David Flynn
Browse files

tmc3: fix mismatched new[]/delete via std::unique_ptr<>



git-svn-id: http://wg11.sc29.org/svn/repos/MPEG-I/Part5-PointCloudCompression/TM/TMC3/trunk@1339 94298a81-5874-47c9-aab8-bfb24faeed7f
parent 45cbe1e0
......@@ -323,7 +323,7 @@ int Compress(const Parameters &params, Stopwatch& clock) {
PCCBitstream bitstream = {};
const size_t predictedBitstreamSize =
encoder.estimateBitstreamSize(pointCloud, params.encodeParameters);
std::unique_ptr<uint8_t> buffer(new uint8_t[predictedBitstreamSize]);
std::unique_ptr<uint8_t[]> buffer(new uint8_t[predictedBitstreamSize]);
bitstream.buffer = buffer.get();
bitstream.capacity = predictedBitstreamSize;
bitstream.size = 0;
......
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