X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fffmpeg_audio_test.cc;h=48422259c7d272c7df160b1b6daa6d5b6bbd5139;hb=08d62727f7f1c813cbc7041027fe4a52518623da;hp=f4954f517daa9db38a38edc167fede450caf710c;hpb=f58d9e44302151dea9f594acd9fc27a331fa77fb;p=dcpomatic.git diff --git a/test/ffmpeg_audio_test.cc b/test/ffmpeg_audio_test.cc index f4954f517..48422259c 100644 --- a/test/ffmpeg_audio_test.cc +++ b/test/ffmpeg_audio_test.cc @@ -22,12 +22,12 @@ */ #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include "lib/sndfile_content.h" #include "lib/film.h" #include "lib/dcp_content_type.h" @@ -44,7 +44,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_test) shared_ptr film = new_test_film ("ffmpeg_audio_test"); film->set_name ("ffmpeg_audio_test"); shared_ptr c (new FFmpegContent (film, "test/data/staircase.mov")); - c->set_ratio (Ratio::from_id ("185")); + c->set_scale (VideoContentScale (Ratio::from_id ("185"))); film->examine_and_add_content (c); wait_for_jobs (); @@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_test) shared_ptr sound_asset = check.cpls().front()->reels().front()->main_sound (); BOOST_CHECK (sound_asset); - BOOST_CHECK (sound_asset->mxf()->channels () == 6); + BOOST_CHECK_EQUAL (sound_asset->mxf()->channels (), 6); /* Sample index in the DCP */ int n = 0;