Try using ffcmp instead of md5 checking for FFmpeg file tests.
[dcpomatic.git] / test / test.cc
index 081a13a8cd93e07de09e5f25034dfa3c6e8c5ed5..ecb4a8af76421979a8f383f29102e7cf0cbafee0 100644 (file)
@@ -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