diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-01 12:34:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-01 12:34:02 +0100 |
| commit | 8f8aa55504a2e67fb5ae005e1a491a38d6c6c7db (patch) | |
| tree | 23b44c2882cc8a909590b0767021bb968518fc0b /test | |
| parent | ee161be0fb0e93d77d34fb3f13fd562a76738a07 (diff) | |
Fix test comparison of float.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ffmpeg_pts_offset_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ffmpeg_pts_offset_test.cc b/test/ffmpeg_pts_offset_test.cc index 9a9785d28..83fe7c708 100644 --- a/test/ffmpeg_pts_offset_test.cc +++ b/test/ffmpeg_pts_offset_test.cc @@ -75,6 +75,6 @@ BOOST_AUTO_TEST_CASE (ffmpeg_pts_offset_test) content->_first_video = ContentTime::from_seconds (frame + 0.0215 + 4.1); content->_audio_stream->first_audio = ContentTime::from_seconds (4.1); FFmpegDecoder decoder (content, film->log()); - BOOST_CHECK_EQUAL (decoder._pts_offset.seconds(), (frame - 0.0215) - 4.1); + BOOST_CHECK_CLOSE (decoder._pts_offset.seconds(), (frame - 0.0215) - 4.1, 0.1); } } |
