Try using ffcmp instead of md5 checking for FFmpeg file tests.
authorCarl Hetherington <cth@carlh.net>
Wed, 18 Oct 2017 09:14:15 +0000 (10:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 18 Oct 2017 09:14:15 +0000 (10:14 +0100)
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