summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
commitceaf7bc52712cb60708ed5eb5c62c5e463dd8e89 (patch)
treec55e4b85ee30138ce83263045d77d01631378b2e /src/frame.h
parent6c37cc1979b2a01205a888c4c98f3334685ee8dd (diff)
Tidying.
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/frame.h b/src/frame.h
index 328b22b8..74bd616f 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -32,6 +32,11 @@
*/
+/** @file src/frame.h
+ * @brief Frame class
+ */
+
+
#ifndef LIBDCP_FRAME_H
#define LIBDCP_FRAME_H
@@ -52,7 +57,7 @@ public:
Frame (R* reader, int n, std::shared_ptr<const DecryptionContext> c)
{
/* XXX: unfortunate guesswork on this buffer size */
- _buffer.reset(new B(Kumu::Megabyte));
+ _buffer = std::make_shared<B>(Kumu::Megabyte);
if (ASDCP_FAILURE(reader->ReadFrame(n, *_buffer, c->context(), c->hmac()))) {
boost::throw_exception (ReadError ("could not read frame"));