diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-24 23:45:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-15 22:16:23 +0200 |
| commit | 2eeee990f029779d8d1c2205b99a239bf87fbbe5 (patch) | |
| tree | 8a5402633b55a447f03e07f7f061318f0a5164a6 /src/AS_DCP_MPEG2.cpp | |
| parent | 6fe97406c72dd95339e4045679507b709dbefae2 (diff) | |
Hash to a vector of bytes rather than an ASCII string.2758-safe-write
Diffstat (limited to 'src/AS_DCP_MPEG2.cpp')
| -rwxr-xr-x | src/AS_DCP_MPEG2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AS_DCP_MPEG2.cpp b/src/AS_DCP_MPEG2.cpp index 10a25d1..8075960 100755 --- a/src/AS_DCP_MPEG2.cpp +++ b/src/AS_DCP_MPEG2.cpp @@ -544,7 +544,7 @@ public: Result_t OpenWrite(const std::string&, ui32_t HeaderSize, bool overwrite = false); Result_t SetSourceStream(const VideoDescriptor&); - Result_t WriteFrame(const FrameBuffer&, AESEncContext* = 0, HMACContext* = 0, std::string* hash = 0); + Result_t WriteFrame(const FrameBuffer&, AESEncContext* = 0, HMACContext* = 0, std::vector<uint8_t>* hash = 0); Result_t FakeWriteFrame(int size, FrameType_t frame_type, bool gop_start, bool closed_gop, ui8_t temporal_offset); Result_t Finalize(); }; @@ -616,7 +616,7 @@ ASDCP::MPEG2::MXFWriter::h__Writer::SetSourceStream(const VideoDescriptor& VDesc // ASDCP::Result_t ASDCP::MPEG2::MXFWriter::h__Writer::WriteFrame(const FrameBuffer& FrameBuf, AESEncContext* Ctx, - HMACContext* HMAC, std::string* hash) + HMACContext* HMAC, std::vector<uint8_t>* hash) { Result_t result = RESULT_OK; @@ -828,7 +828,7 @@ ASDCP::MPEG2::MXFWriter::OpenWrite(const std::string& filename, const WriterInfo // Fails if the file is not open, is finalized, or an operating system // error occurs. ASDCP::Result_t -ASDCP::MPEG2::MXFWriter::WriteFrame(const FrameBuffer& FrameBuf, AESEncContext* Ctx, HMACContext* HMAC, std::string* hash) +ASDCP::MPEG2::MXFWriter::WriteFrame(const FrameBuffer& FrameBuf, AESEncContext* Ctx, HMACContext* HMAC, std::vector<uint8_t>* hash) { if ( m_Writer.empty() ) return RESULT_INIT; |
