From: Carl Hetherington Date: Wed, 18 Oct 2017 09:14:15 +0000 (+0100) Subject: Try using ffcmp instead of md5 checking for FFmpeg file tests. X-Git-Tag: v2.11.27~7 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=cc0691901d30b06e60227d329941c378f873e84e Try using ffcmp instead of md5 checking for FFmpeg file tests. --- diff --git a/test/test.cc b/test/test.cc index 081a13a8c..ecb4a8af7 100644 --- a/test/test.cc +++ b/test/test.cc @@ -444,8 +444,8 @@ check_ffmpeg_stream (boost::filesystem::path ref, boost::filesystem::path check, void check_ffmpeg (boost::filesystem::path ref, boost::filesystem::path check) { - check_ffmpeg_stream (ref, check, "v"); - check_ffmpeg_stream (ref, check, "a"); + int const r = system (string("ffcmp " + ref.string() + " " + check.string()).c_str()); + BOOST_REQUIRE_EQUAL (WEXITSTATUS(r), 0); } void