summaryrefslogtreecommitdiff
path: root/test/low_bitrate_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-11-21 14:29:21 +0100
committerCarl Hetherington <cth@carlh.net>2021-11-22 23:59:43 +0100
commit33acff363c978914cdcbf21fb8fa3d1c4c6991b7 (patch)
tree4bd8de953c0692d816e48e59d036a1625b9d3ff2 /test/low_bitrate_test.cc
parent0a49cc2ebbfc3809313f252208a0050a3fce1e97 (diff)
Allow J2K encode backends to accept more than one frame at once.
Diffstat (limited to 'test/low_bitrate_test.cc')
-rw-r--r--test/low_bitrate_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/low_bitrate_test.cc b/test/low_bitrate_test.cc
index 8f16f56f1..7fe963447 100644
--- a/test/low_bitrate_test.cc
+++ b/test/low_bitrate_test.cc
@@ -59,9 +59,9 @@ BOOST_AUTO_TEST_CASE (low_bitrate_test)
DCPVideo dcp_video(frame, 0, 24, 100000000, Resolution::TWO_K);
J2KEncoderCPUBackend cpu;
- auto j2k = cpu.encode(dcp_video);
- BOOST_REQUIRE (static_cast<bool>(j2k));
- BOOST_REQUIRE (j2k->size() >= 16536);
+ auto j2k = cpu.encode({dcp_video});
+ BOOST_REQUIRE (!j2k.empty());
+ BOOST_REQUIRE (j2k[0].size() >= 16536);
}