Split KDM output stuff into a separate panel.
[dcpomatic.git] / test / seek_zero_test.cc
index 7f661b21cf11183ead22b494a080146837f5c0c6..ad8ecb09f7730b7c7913f887e9045c7d0cde9093 100644 (file)
@@ -31,6 +31,7 @@
 #include "lib/ffmpeg_audio_stream.h"
 #include "lib/content_video.h"
 #include "test.h"
+#include <iostream>
 
 using std::cout;
 using std::list;
@@ -57,9 +58,9 @@ BOOST_AUTO_TEST_CASE (seek_zero_test)
                video_delay = ContentTime ();
        }
 
-       Frame const first_frame = video_delay.round_up (content->video_frame_rate ()).frames (content->video_frame_rate ());
+       Frame const first_frame = video_delay.round_up (content->video_frame_rate ()).frames_round (content->video_frame_rate ());
 
-       FFmpegDecoder decoder (content, film->log());
+       FFmpegDecoder decoder (content, film->log(), false);
        list<ContentVideo> a = decoder.get_video (first_frame, true);
        BOOST_CHECK (a.size() == 1);
        BOOST_CHECK_EQUAL (a.front().frame, first_frame);