summaryrefslogtreecommitdiff
path: root/test/ffmpeg_decoder_sequential_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/ffmpeg_decoder_sequential_test.cc')
-rw-r--r--test/ffmpeg_decoder_sequential_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ffmpeg_decoder_sequential_test.cc b/test/ffmpeg_decoder_sequential_test.cc
index b4ff36e6e..9a14c5adb 100644
--- a/test/ffmpeg_decoder_sequential_test.cc
+++ b/test/ffmpeg_decoder_sequential_test.cc
@@ -56,7 +56,9 @@ test (boost::filesystem::path file, float fps, int first)
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 ());
+#ifdef DCPOMATIC_DEBUG
decoder.test_gaps = 0;
+#endif
for (VideoFrame i = 0; i < N; ++i) {
list<ContentVideo> v;
v = decoder.get_video (i, true);
@@ -67,7 +69,9 @@ test (boost::filesystem::path file, float fps, int first)
BOOST_CHECK_EQUAL (v.front().frame, i);
}
}
+#ifdef DCPOMATIC_DEBUG
BOOST_CHECK_EQUAL (decoder.test_gaps, 0);
+#endif
}
BOOST_AUTO_TEST_CASE (ffmpeg_decoder_sequential_test)