Use a shared_ptr<vector> for ArrayData rather than a shared_array.
authorCarl Hetherington <cth@carlh.net>
Sun, 16 Apr 2023 20:07:10 +0000 (22:07 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 16 Apr 2023 20:14:26 +0000 (22:14 +0200)
commitb0520d7a1bffaff1ca7161f5b7672f06b13808a1
tree8b7777c6fc7fc6f2f36e85c60151031b8860a09b
parent65d21ed2de3a76dc574c8ad111fc02d8f696fcd6
Use a shared_ptr<vector> for ArrayData rather than a shared_array.

This is simpler and allows us to remove the hack of allocating some
"maximum" buffer for incoming JPEG2000 data.

It does mean that the buffer is zero-initialized before being written
to, but hopefully that doesn't matter too much.
src/array_data.cc
src/array_data.h
src/j2k_transcode.cc
src/smpte_subtitle_asset.cc