diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-04 12:33:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-04 12:33:41 +0100 |
| commit | 8102046b2f29e0c7b234c29bf204b056cb30e64f (patch) | |
| tree | 84933e8db7822e863ae9ab4e6524ab3176606b11 /src/lib/writer.cc | |
| parent | 3574212ee42b2bd924eb95d5c0f4f69ec9e0a2f0 (diff) | |
| parent | 82926443230084739cb673a83b2ab1f9d733a07b (diff) | |
Merge master.
Diffstat (limited to 'src/lib/writer.cc')
| -rw-r--r-- | src/lib/writer.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 9410dd565..580dfe4f2 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -42,6 +42,7 @@ #include "job.h" #include "cross.h" #include "audio_buffers.h" +#include "md5_digester.h" #include "i18n.h" @@ -493,9 +494,10 @@ Writer::check_existing_picture_mxf_frame (FILE* mxf, int f, Eyes eyes) LOG_GENERAL ("Existing frame %1 is incomplete", f); return false; } - - string const existing_hash = md5_digest (data.data(), data.size()); - if (existing_hash != info.hash) { + + MD5Digester digester; + digester.add (data.data(), data.size()); + if (digester.get() != info.hash) { LOG_GENERAL ("Existing frame %1 failed hash check", f); return false; } |
