diff options
| -rw-r--r-- | src/frame.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/frame.h b/src/frame.h index 7b5e6366..5db77e51 100644 --- a/src/frame.h +++ b/src/frame.h @@ -34,6 +34,7 @@ #ifndef LIBDCP_FRAME_H #define LIBDCP_FRAME_H +#include "compose.hpp" #include "crypto_context.h" #include "exceptions.h" #include <asdcp/KM_fileio.h> @@ -51,8 +52,9 @@ public: /* XXX: unfortunate guesswork on this buffer size */ _buffer = new B (Kumu::Megabyte); - if (ASDCP_FAILURE (reader->ReadFrame (n, *_buffer, c->context(), c->hmac()))) { - boost::throw_exception (DCPReadError ("could not read frame")); + auto const result = reader->ReadFrame(n, *_buffer, c->context(), nullptr); + if (ASDCP_FAILURE(result)) { + boost::throw_exception(DCPReadError(String::compose("could not read frame %1 (%2)", n, int(result)))); } } |
