projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e77df3f
)
Fix non-debug build.
author
Carl Hetherington
<cth@carlh.net>
Tue, 20 May 2014 19:35:39 +0000
(20:35 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 20 May 2014 19:35:39 +0000
(20:35 +0100)
test/ffmpeg_decoder_sequential_test.cc
patch
|
blob
|
history
diff --git
a/test/ffmpeg_decoder_sequential_test.cc
b/test/ffmpeg_decoder_sequential_test.cc
index b4ff36e6eed0848624fcd8aabb019023252f056b..9a14c5adbdb1695a5ef890b5c41bfb637361e315 100644
(file)
--- 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 ());
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;
decoder.test_gaps = 0;
+#endif
for (VideoFrame i = 0; i < N; ++i) {
list<ContentVideo> v;
v = decoder.get_video (i, true);
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);
}
}
BOOST_CHECK_EQUAL (v.front().frame, i);
}
}
+#ifdef DCPOMATIC_DEBUG
BOOST_CHECK_EQUAL (decoder.test_gaps, 0);
BOOST_CHECK_EQUAL (decoder.test_gaps, 0);
+#endif
}
BOOST_AUTO_TEST_CASE (ffmpeg_decoder_sequential_test)
}
BOOST_AUTO_TEST_CASE (ffmpeg_decoder_sequential_test)