diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-29 09:14:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-29 20:53:49 +0200 |
| commit | 39fb8198febde1937019db1c300ec363aab5aa56 (patch) | |
| tree | 52bc32134e8ae2b5587b3a62130baa9acf815b60 /test/silence_padding_test.cc | |
| parent | b249700e1da7dd6631a8b4440587f4093a2bdef1 (diff) | |
C++11 tidying.
Diffstat (limited to 'test/silence_padding_test.cc')
| -rw-r--r-- | test/silence_padding_test.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/silence_padding_test.cc b/test/silence_padding_test.cc index 328f9bef7..e4c640792 100644 --- a/test/silence_padding_test.cc +++ b/test/silence_padding_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,11 +18,13 @@ */ + /** @file test/silence_padding_test.cc * @brief Test the padding (with silence) of a mono source to a 6-channel DCP. * @ingroup feature */ + #include "lib/ffmpeg_content.h" #include "lib/film.h" #include "lib/dcp_content_type.h" @@ -37,11 +39,13 @@ #include <dcp/sound_asset_reader.h> #include <boost/test/unit_test.hpp> + using std::make_shared; using std::string; using std::shared_ptr; using boost::lexical_cast; + static void test_silence_padding (int channels) { @@ -120,6 +124,7 @@ test_silence_padding (int channels) } + BOOST_AUTO_TEST_CASE (silence_padding_test) { for (int i = 1; i < MAX_DCP_AUDIO_CHANNELS; ++i) { @@ -127,6 +132,7 @@ BOOST_AUTO_TEST_CASE (silence_padding_test) } } + /** Test a situation that used to crash because of a sub-sample rounding confusion * caused by a trim. */ |
