Try using ffcmp instead of md5 checking for FFmpeg file tests.
[dcpomatic.git] / test / test.cc
index 1ca06c105584b43baa5d71961f70babe1a6b2639..ecb4a8af76421979a8f383f29102e7cf0cbafee0 100644 (file)
@@ -442,10 +442,10 @@ check_ffmpeg_stream (boost::filesystem::path ref, boost::filesystem::path check,
 }
 
 void
-check_ffmpeg (boost::filesystem::path ref, boost::filesystem::path check, int skip_packet_stream)
+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