summaryrefslogtreecommitdiff
path: root/src/frame_info.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-25 00:13:55 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-15 23:18:58 +0200
commitb786ec52435a697f7bcc2ef1870f22e27e446315 (patch)
tree0a2a2ad040e5a73350b853d190acd3277fecd1cd /src/frame_info.h
parent7cb07bcec10bfdfed3e82a2dc138114dc6a5ac68 (diff)
FIXME: Hash to a vector rather than a string.2758-safe-write
Needs asdcplib version bump.
Diffstat (limited to 'src/frame_info.h')
-rw-r--r--src/frame_info.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/frame_info.h b/src/frame_info.h
index 325350c4..ea57885c 100644
--- a/src/frame_info.h
+++ b/src/frame_info.h
@@ -42,6 +42,7 @@ LIBDCP_DISABLE_WARNINGS
LIBDCP_ENABLE_WARNINGS
#include <stdint.h>
#include <string>
+#include <vector>
namespace dcp {
@@ -54,15 +55,15 @@ struct FrameInfo
{
FrameInfo () = default;
- FrameInfo(uint64_t o, uint64_t s, std::string h)
+ FrameInfo(uint64_t o, uint64_t s, std::vector<uint8_t> h)
: offset(o)
, size(s)
- , hash(h)
+ , hash(std::move(h))
{}
uint64_t offset = 0;
uint64_t size = 0;
- std::string hash;
+ std::vector<uint8_t> hash;
};
@@ -70,7 +71,7 @@ struct J2KFrameInfo : public FrameInfo
{
J2KFrameInfo() = default;
- J2KFrameInfo(uint64_t offset_, uint64_t size_, std::string hash_)
+ J2KFrameInfo(uint64_t offset_, uint64_t size_, std::vector<uint8_t> hash_)
: FrameInfo(offset_, size_, hash_)
{}
};
@@ -83,7 +84,7 @@ struct MPEG2FrameInfo : public FrameInfo
MPEG2FrameInfo(
uint64_t offset_,
uint64_t size_,
- std::string hash_,
+ std::vector<uint8_t> hash_,
ASDCP::MPEG2::FrameType_t type_,
bool gop_start_,
bool closed_gop_,