diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-13 15:42:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-18 11:50:29 +0100 |
| commit | f36136e70efbc19255142319a1676f25fa55f780 (patch) | |
| tree | ec4b55b53c40be2315bc26ebd6a11d32d028fc98 /test | |
| parent | 29fe2d3a4c347e15b987f9e61e56d22a21d4678f (diff) | |
Various text fixes.
Diffstat (limited to 'test')
| -rw-r--r-- | test/audio_decoder_test.cc | 2 | ||||
| m--------- | test/data | 0 | ||||
| -rw-r--r-- | test/frame_rate_test.cc | 7 |
3 files changed, 5 insertions, 4 deletions
diff --git a/test/audio_decoder_test.cc b/test/audio_decoder_test.cc index 45617bc41..d196a0243 100644 --- a/test/audio_decoder_test.cc +++ b/test/audio_decoder_test.cc @@ -54,7 +54,7 @@ public: } Frame audio_length () const { - return llrint (61.2942 * audio->stream()->frame_rate ()); + return llrint (61.2942 * 48000); } }; diff --git a/test/data b/test/data -Subproject caafd158432719c233e4a6c255f32b78c1c545a +Subproject f70fddede90fdb87ff8ee2339f208d2658c665a diff --git a/test/frame_rate_test.cc b/test/frame_rate_test.cc index 688464705..8a4aed43b 100644 --- a/test/frame_rate_test.cc +++ b/test/frame_rate_test.cc @@ -43,7 +43,7 @@ BOOST_AUTO_TEST_CASE (best_dcp_frame_rate_test_single) shared_ptr<Film> film = new_test_film ("best_dcp_frame_rate_test_single"); /* Get any piece of content, it doesn't matter what */ shared_ptr<FFmpegContent> content (new FFmpegContent (film, "test/data/test.mp4")); - film->add_content (content); + film->examine_and_add_content (content); wait_for_jobs (); /* Run some tests with a limited range of allowed rates */ @@ -221,9 +221,9 @@ BOOST_AUTO_TEST_CASE (best_dcp_frame_rate_test_double) shared_ptr<Film> film = new_test_film ("best_dcp_frame_rate_test_double"); /* Get any old content, it doesn't matter what */ shared_ptr<FFmpegContent> A (new FFmpegContent (film, "test/data/test.mp4")); - film->add_content (A); + film->examine_and_add_content (A); shared_ptr<FFmpegContent> B (new FFmpegContent (film, "test/data/test.mp4")); - film->add_content (B); + film->examine_and_add_content (B); wait_for_jobs (); /* Run some tests with a limited range of allowed rates */ @@ -262,6 +262,7 @@ BOOST_AUTO_TEST_CASE (audio_sampling_rate_test) Config::instance()->set_allowed_dcp_frame_rates (afr); shared_ptr<FFmpegAudioStream> stream (new FFmpegAudioStream ("foo", 0, 0, 0, 0)); + content->audio.reset (new AudioContent (content.get())); content->audio->add_stream (stream); content->_video_frame_rate = 24; film->set_video_frame_rate (24); |
