summaryrefslogtreecommitdiff
path: root/test/ffmpeg_decoder_seek_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-07 14:25:15 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-08 20:49:54 +0100
commitcd5dc2719fa4d113381e84aee867037855537634 (patch)
treef1a06c19592d60a55aacd6634a0c0447fd251878 /test/ffmpeg_decoder_seek_test.cc
parentb41807b42b5f9d63c820e0c7b592d16250973fe9 (diff)
White space: ffmpeg_decoder_seek_test.cc
Diffstat (limited to 'test/ffmpeg_decoder_seek_test.cc')
-rw-r--r--test/ffmpeg_decoder_seek_test.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/ffmpeg_decoder_seek_test.cc b/test/ffmpeg_decoder_seek_test.cc
index 796db043f..dd7f2f47d 100644
--- a/test/ffmpeg_decoder_seek_test.cc
+++ b/test/ffmpeg_decoder_seek_test.cc
@@ -56,7 +56,7 @@ using namespace dcpomatic;
static optional<ContentVideo> stored;
static bool
-store (ContentVideo v)
+store(ContentVideo v)
{
stored = v;
return true;
@@ -64,34 +64,34 @@ store (ContentVideo v)
static void
-check (shared_ptr<FFmpegDecoder> decoder, ContentTime time)
+check(shared_ptr<FFmpegDecoder> decoder, ContentTime time)
{
- BOOST_REQUIRE (decoder->ffmpeg_content()->video_frame_rate ());
+ BOOST_REQUIRE(decoder->ffmpeg_content()->video_frame_rate());
decoder->seek(time, true);
- stored = optional<ContentVideo> ();
+ stored = optional<ContentVideo>();
while (!decoder->pass() && !stored) {}
BOOST_CHECK(stored->time <= time);
}
static void
-test (boost::filesystem::path file, vector<ContentTime> times)
+test(boost::filesystem::path file, vector<ContentTime> times)
{
auto path = TestPaths::private_data() / file;
- BOOST_REQUIRE (boost::filesystem::exists (path));
+ BOOST_REQUIRE(boost::filesystem::exists(path));
auto content = make_shared<FFmpegContent>(path);
auto film = new_test_film("ffmpeg_decoder_seek_test_" + file.string(), { content });
auto decoder = make_shared<FFmpegDecoder>(film, content, false);
- decoder->video->Data.connect (bind (&store, _1));
+ decoder->video->Data.connect(bind(&store, _1));
for (auto i: times) {
- check (decoder, i);
+ check(decoder, i);
}
}
-BOOST_AUTO_TEST_CASE (ffmpeg_decoder_seek_test)
+BOOST_AUTO_TEST_CASE(ffmpeg_decoder_seek_test)
{
test(
"boon_telly.mkv",