diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-23 18:05:08 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-23 18:05:08 +0000 |
| commit | ab95f38a2a420193e886882ff577e655f9dd8f1e (patch) | |
| tree | 4400b4f319c47c4dc234315d8f9d67e5aa45c51f | |
| parent | ed4ed721b9f17c9153b416eb060b7ae77349e990 (diff) | |
Don't check HMAC codes, at least when reading sound assets.videocon-0
Also report failures to read frames more thoroughly.
| -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)))); } } |
