From dd59755d86cdb1892bb0ba4d69af520cee4aa964 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 16 Sep 2015 00:52:50 +0100 Subject: Back-end for very basic and hacky VF support for a DCP imported as content. --- src/lib/dcp_decoder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/dcp_decoder.cc') diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 1c3285d2d..5060b9a7f 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -68,7 +68,7 @@ DCPDecoder::pass () double const vfr = _dcp_content->video_frame_rate (); int64_t const frame = _next.frames_round (vfr); - if ((*_reel)->main_picture ()) { + if ((*_reel)->main_picture () && !_dcp_content->reference_video ()) { shared_ptr asset = (*_reel)->main_picture()->asset (); shared_ptr mono = dynamic_pointer_cast (asset); shared_ptr stereo = dynamic_pointer_cast (asset); @@ -88,7 +88,7 @@ DCPDecoder::pass () } } - if ((*_reel)->main_sound ()) { + if ((*_reel)->main_sound () && !_dcp_content->reference_audio ()) { int64_t const entry_point = (*_reel)->main_sound()->entry_point (); shared_ptr sf = (*_reel)->main_sound()->asset()->get_frame (entry_point + frame); uint8_t const * from = sf->data (); @@ -106,7 +106,7 @@ DCPDecoder::pass () audio (_dcp_content->audio_stream(), data, _next); } - if ((*_reel)->main_subtitle ()) { + if ((*_reel)->main_subtitle () && !_dcp_content->reference_subtitle ()) { int64_t const entry_point = (*_reel)->main_subtitle()->entry_point (); list subs = (*_reel)->main_subtitle()->subtitle_asset()->subtitles_during ( dcp::Time (entry_point + frame, vfr, vfr), -- cgit v1.2.3