- BOOST_CHECK_CLOSE (decoder.video_content()->video_frame_rate(), fps, 0.01);
-
- VideoFrame const N = decoder.video_content()->video_length().frames (decoder.video_content()->video_frame_rate ());
- decoder.test_gaps = 0;
- for (VideoFrame i = 0; i < N; ++i) {
- optional<ContentVideo> v;
- v = decoder.get_video (i, true);
- if (i < first) {
- BOOST_CHECK (!v);
- } else {
- BOOST_CHECK (v);
- BOOST_CHECK_EQUAL (v->frame, i);
- }
+ BOOST_CHECK_CLOSE (decoder->video_content()->video_frame_rate(), fps, 0.01);
+
+ Frame const N = decoder->video_content()->video_length();
+#ifdef DCPOMATIC_DEBUG
+ decoder->test_gaps = 0;
+#endif
+ for (Frame i = 0; i < N; ++i) {
+ list<ContentVideo> v;
+ v = decoder->get_video (i, true);
+ BOOST_CHECK_EQUAL (v.size(), 1U);
+ BOOST_CHECK_EQUAL (v.front().frame, i);