using std::dynamic_pointer_cast;
using std::make_shared;
-using std::shared_ptr;
void check_within_n (int64_t a, int64_t b, int64_t n)
film->set_j2k_bandwidth (100000000);
film->set_audio_channels (6);
film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
- auto content_a = content_factory("test/data/flat_blue.png").front();
+ auto content_a = content_factory("test/data/flat_blue.png")[0];
BOOST_REQUIRE (content_a);
film->examine_and_add_content (content_a);
auto content_b = make_shared<DCPContent>("test/data/burnt_subtitle_test_dcp");
check_within_n (
film->required_disk_space(),
- 289LL * (100000000 / 8) / 24 + // video
- 289LL * 48000 * 6 * 3 / 24 + // audio
+ 288LL * (100000000 / 8) / 24 + // video
+ 288LL * 48000 * 6 * 3 / 24 + // audio
65536, // extra
16
);
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
- 289LL * 48000 * 6 * 3 / 24 + // audio
+ 288LL * 48000 * 6 * 3 / 24 + // audio
65536, // extra
16
);