X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fffmpeg_examiner_test.cc;h=0233db1f0b51538eece2136f03d91ecf12ef854c;hb=1e77753ef4119b6d7df7d2255b1a1d8d6af951de;hp=2900689e52a539d549acf780ee1d966abbe41f36;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;p=dcpomatic.git diff --git a/test/ffmpeg_examiner_test.cc b/test/ffmpeg_examiner_test.cc index 2900689e5..0233db1f0 100644 --- a/test/ffmpeg_examiner_test.cc +++ b/test/ffmpeg_examiner_test.cc @@ -21,25 +21,24 @@ /** @file test/ffmpeg_examiner_test.cc * @brief Check that the FFmpegExaminer can extract the first video and audio time * correctly from data/count300bd24.m2ts. + * @ingroup specific */ +#include #include "lib/ffmpeg_examiner.h" #include "lib/ffmpeg_content.h" #include "lib/ffmpeg_audio_stream.h" #include "test.h" -#include -#include using boost::shared_ptr; -using boost::make_shared; BOOST_AUTO_TEST_CASE (ffmpeg_examiner_test) { shared_ptr film = new_test_film ("ffmpeg_examiner_test"); - shared_ptr content = make_shared (film, "test/data/count300bd24.m2ts"); - shared_ptr examiner = make_shared (content); + shared_ptr content (new FFmpegContent (film, "test/data/count300bd24.m2ts")); + shared_ptr examiner (new FFmpegExaminer (content)); - BOOST_CHECK_EQUAL (examiner->first_video().get(), ContentTime::from_seconds (600)); + BOOST_CHECK_EQUAL (examiner->first_video().get().get(), ContentTime::from_seconds(600).get()); BOOST_CHECK_EQUAL (examiner->audio_streams().size(), 1U); - BOOST_CHECK_EQUAL (examiner->audio_streams()[0]->first_audio.get(), ContentTime::from_seconds (600)); + BOOST_CHECK_EQUAL (examiner->audio_streams()[0]->first_audio.get().get(), ContentTime::from_seconds(600).get()); }