Commit 44cd6e25 authored by Martin Storsjö's avatar Martin Storsjö

dav1d: Only return 0/1 from md5_verify

This makes the process exit codes more sensible when failing
verification; when there's a mismatch, memcmp returns the difference
between the two first differing bytes, which can fall outside of the
range of normal exit codes, into the range of exit codes used when
terminated by a signal.
parent 16ce8b1a
...@@ -234,7 +234,7 @@ static int md5_verify(MD5Context *const md5, const char *const md5_str) { ...@@ -234,7 +234,7 @@ static int md5_verify(MD5Context *const md5, const char *const md5_str) {
} }
} }
return memcmp(abcd, md5->abcd, sizeof(abcd)); return !!memcmp(abcd, md5->abcd, sizeof(abcd));
} }
const Muxer md5_muxer = { const Muxer md5_muxer = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment