X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fffmpeg_audio_test.cc;h=7b77a7d8f0f79936f7d8e8e9f6424f36abc9d964;hb=61a78ca5d3fcd6e820630ae1caf3be7310806cc8;hp=ec5752b9d994e5f0d08d4faf4eeb7e8251db2ac6;hpb=48cd8b6a44ab689ad2eb8e6d86e086def995d9ba;p=dcpomatic.git diff --git a/test/ffmpeg_audio_test.cc b/test/ffmpeg_audio_test.cc index ec5752b9d..7b77a7d8f 100644 --- a/test/ffmpeg_audio_test.cc +++ b/test/ffmpeg_audio_test.cc @@ -29,6 +29,8 @@ #include "lib/video_content.h" #include "lib/ratio.h" #include "lib/ffmpeg_content.h" +#include "lib/content_factory.h" +#include "lib/player.h" #include "test.h" #include #include @@ -123,3 +125,15 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_test) } } } + +/** Decode a file containing truehd so we can profile it */ +BOOST_AUTO_TEST_CASE (ffmpeg_audio_test2) +{ + shared_ptr film = new_test_film2 ("ffmpeg_audio_test2"); + shared_ptr content = content_factory(film, private_data / "wayne.mkv").front(); + film->examine_and_add_content (content); + BOOST_REQUIRE (!wait_for_jobs ()); + + shared_ptr player (new Player (film, film->playlist ())); + while (!player->pass ()) {} +}