diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-31 22:44:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-02 00:12:56 +0100 |
| commit | 9e613ae8a3cd7994194d2d709f6ff9b88feac70b (patch) | |
| tree | 40611aafec40f836ca23ef9b99093d526f9d43c1 /src/smpte_subtitle_asset.cc | |
| parent | da15bff6e278d351301c9c50a4c96737ae4b5545 (diff) | |
Add Data class and change API to a raw pointer.
Diffstat (limited to 'src/smpte_subtitle_asset.cc')
| -rw-r--r-- | src/smpte_subtitle_asset.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc index c9545052..224ae8ba 100644 --- a/src/smpte_subtitle_asset.cc +++ b/src/smpte_subtitle_asset.cc @@ -418,7 +418,8 @@ SMPTESubtitleAsset::write (boost::filesystem::path p) const } if (j != _fonts.end ()) { ASDCP::TimedText::FrameBuffer buffer; - buffer.SetData (j->data.data().get(), j->data.size()); + ArrayData data_copy(j->data); + buffer.SetData (data_copy.data(), data_copy.size()); buffer.Size (j->data.size()); r = writer.WriteAncillaryResource (buffer, enc.context(), enc.hmac()); if (ASDCP_FAILURE (r)) { @@ -433,7 +434,7 @@ SMPTESubtitleAsset::write (boost::filesystem::path p) const shared_ptr<SubtitleImage> si = dynamic_pointer_cast<SubtitleImage>(i); if (si) { ASDCP::TimedText::FrameBuffer buffer; - buffer.SetData (si->png_image().data().get(), si->png_image().size()); + buffer.SetData (si->png_image().data(), si->png_image().size()); buffer.Size (si->png_image().size()); r = writer.WriteAncillaryResource (buffer, enc.context(), enc.hmac()); if (ASDCP_FAILURE(r)) { |
