summaryrefslogtreecommitdiff
path: root/src/frame_info.h
diff options
context:
space:
mode:
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_,