Supporter.
[dcpomatic.git] / test / ffmpeg_decoder_sequential_test.cc
index c6af70c2c3c138a95fe973714be15b969f878d30..6b02efcb50d264a1de413f537275a5d97922f557 100644 (file)
@@ -54,14 +54,14 @@ test (boost::filesystem::path file, float fps, int gaps)
 
        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 ());
+       Frame const N = decoder.video_content()->video_length();
 #ifdef DCPOMATIC_DEBUG 
        decoder.test_gaps = 0;
 #endif 
-       for (VideoFrame i = 0; i < N; ++i) {
+       for (Frame i = 0; i < N; ++i) {
                list<ContentVideo> v;
                v = decoder.get_video (i, true);
-               BOOST_CHECK (v.size() == 1);
+               BOOST_CHECK_EQUAL (v.size(), 1);
                BOOST_CHECK_EQUAL (v.front().frame, i);
        }
 #ifdef DCPOMATIC_DEBUG