From ab95f38a2a420193e886882ff577e655f9dd8f1e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 23 Dec 2025 18:05:08 +0000 Subject: Don't check HMAC codes, at least when reading sound assets. Also report failures to read frames more thoroughly. --- src/frame.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ -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)))); } } -- cgit v1.2.3