diff options
Diffstat (limited to 'src/frame.h')
| -rw-r--r-- | src/frame.h | 7 |
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")); |
