diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-10-19 21:29:54 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-11-01 01:40:30 +0100 |
| commit | 738ced15ead0f029cf2becf9b77d7adf37e733e3 (patch) | |
| tree | 535e41340b94a21429f6b82c3588d51d5ceec1b8 /test | |
| parent | 24cfca51dffed98f0b115ca36f9a8478753e2432 (diff) | |
Obtain audio length by scanning through the file if required (#2880).
Diffstat (limited to 'test')
| -rw-r--r-- | test/ffmpeg_audio_test.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ffmpeg_audio_test.cc b/test/ffmpeg_audio_test.cc index b2a83aad8..9ab7666c7 100644 --- a/test/ffmpeg_audio_test.cc +++ b/test/ffmpeg_audio_test.cc @@ -140,3 +140,11 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_test4) BOOST_CHECK_NO_THROW (while (!player->pass()) {}); } + + +BOOST_AUTO_TEST_CASE(no_audio_length_in_header) +{ + auto content = content_factory(TestPaths::private_data() / "10-seconds.thd"); + auto film = new_test_film2("no_audio_length_in_header", content); + BOOST_CHECK(content[0]->full_length(film) == dcpomatic::DCPTime::from_seconds(10)); +} |
