diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-25 22:17:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-25 22:17:23 +0100 |
| commit | 1d68fe1e3ad1a9aa85fa7fc6071a0b8c64973953 (patch) | |
| tree | cbad95204bf34c95ef2e6c6f5963eff00b81f140 /test | |
| parent | e386b94425586760374d8e1cb16be99af09cf07f (diff) | |
Purge rint() and use llrint and friends.
Diffstat (limited to 'test')
| -rw-r--r-- | test/audio_decoder_test.cc | 2 | ||||
| -rw-r--r-- | test/frame_rate_test.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/audio_decoder_test.cc b/test/audio_decoder_test.cc index 8af5dfb11..00d555d86 100644 --- a/test/audio_decoder_test.cc +++ b/test/audio_decoder_test.cc @@ -51,7 +51,7 @@ public: } Frame audio_length () const { - return rint (61.2942 * audio_stream()->frame_rate ()); + return llrint (61.2942 * audio_stream()->frame_rate ()); } }; diff --git a/test/frame_rate_test.cc b/test/frame_rate_test.cc index b9fd51391..a318ada11 100644 --- a/test/frame_rate_test.cc +++ b/test/frame_rate_test.cc @@ -301,5 +301,5 @@ BOOST_AUTO_TEST_CASE (audio_sampling_rate_test) /* The FrameRateChange within resampled_audio_frame_rate should choose to double-up the 14.99 fps video to 30 and then run it slow at 25. */ - BOOST_CHECK_EQUAL (content->resampled_audio_frame_rate(), rint (48000 * 2 * 14.99 / 25)); + BOOST_CHECK_EQUAL (content->resampled_audio_frame_rate(), lrint (48000 * 2 * 14.99 / 25)); } |
