From 368832f2ff6837d9029020b41fb97fb148c3be31 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 1 Jun 2016 23:58:47 +0100 Subject: Use new libdcp reader interface. --- test/silence_padding_test.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'test/silence_padding_test.cc') diff --git a/test/silence_padding_test.cc b/test/silence_padding_test.cc index 53c5021c3..9791b7172 100644 --- a/test/silence_padding_test.cc +++ b/test/silence_padding_test.cc @@ -22,18 +22,19 @@ * @brief Test the padding (with silence) of a mono source to a 6-channel DCP. */ -#include +#include "lib/ffmpeg_content.h" +#include "lib/film.h" +#include "lib/dcp_content_type.h" +#include "lib/ratio.h" +#include "test.h" #include #include #include #include #include #include -#include "lib/ffmpeg_content.h" -#include "lib/film.h" -#include "lib/dcp_content_type.h" -#include "lib/ratio.h" -#include "test.h" +#include +#include using std::string; using boost::lexical_cast; @@ -72,7 +73,7 @@ test_silence_padding (int channels) int frame = 0; while (n < sound_asset->asset()->intrinsic_duration()) { - shared_ptr sound_frame = sound_asset->asset()->get_frame (frame++); + shared_ptr sound_frame = sound_asset->asset()->start_read()->get_frame (frame++); uint8_t const * d = sound_frame->data (); for (int i = 0; i < sound_frame->size(); i += (3 * sound_asset->asset()->channels())) { -- cgit v1.2.3