Fix failure to decode multiple video frames from one packet (#2159).
[dcpomatic.git] / test / player_test.cc
index cafb14586a1e56421449c7e97b5b0c3366c4a5fc..0d3af5f8c73abc3d8984df70d17db0fd3cfbdd36 100644 (file)
@@ -210,7 +210,7 @@ BOOST_AUTO_TEST_CASE (player_interleave_test)
        player->Audio.connect (bind (&audio, _1, _2));
        video_frames = audio_frames = 0;
        while (!player->pass ()) {
-               BOOST_CHECK (abs(video_frames - (audio_frames / 2000)) < 8);
+               BOOST_CHECK (abs(video_frames - (audio_frames / 2000)) <= 8);
        }
 }