Change MagickImageProxy to FFmpegImageProxy and make it use FFmpeg
[dcpomatic.git] / test / ffmpeg_pts_offset_test.cc
index 02ea0233d8e1bb4caa3efd188201c86f19219a8c..bdc46f6d91834474f9d125dfc609b4de06640b64 100644 (file)
@@ -20,6 +20,7 @@
 
 /** @file  test/ffmpeg_pts_offset_test.cc
  *  @brief Check the computation of _pts_offset in FFmpegDecoder.
+ *  @ingroup specific
  */
 
 #include <boost/test/unit_test.hpp>
@@ -48,7 +49,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_pts_offset_test)
                content->_first_video = ContentTime ();
                content->ffmpeg_audio_streams().front()->first_audio = ContentTime ();
                FFmpegDecoder decoder (content, film->log(), false);
-               BOOST_CHECK_EQUAL (decoder._pts_offset, ContentTime ());
+               BOOST_CHECK_EQUAL (decoder._pts_offset.get(), 0);
        }
 
        {
@@ -56,7 +57,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_pts_offset_test)
                content->_first_video = ContentTime::from_seconds (600);
                content->ffmpeg_audio_streams().front()->first_audio = ContentTime::from_seconds (600);
                FFmpegDecoder decoder (content, film->log(), false);
-               BOOST_CHECK_EQUAL (decoder._pts_offset, ContentTime::from_seconds (-600));
+               BOOST_CHECK_EQUAL (decoder._pts_offset.get(), ContentTime::from_seconds(-600).get());
        }
 
        {
@@ -64,7 +65,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_pts_offset_test)
                content->_first_video = ContentTime::from_frames (1, 24);
                content->ffmpeg_audio_streams().front()->first_audio = ContentTime ();
                FFmpegDecoder decoder (content, film->log(), false);
-               BOOST_CHECK_EQUAL (decoder._pts_offset, ContentTime ());
+               BOOST_CHECK_EQUAL (decoder._pts_offset.get(), 0);
        }
 
        {