From 60d528017a3ac1afdc30a3a000b28dda96a2175e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 29 Dec 2017 01:11:22 +0000 Subject: Previously the code did not account for referenced audio, so far as I can see. It decided which reel to write new audio to based on how many frames had been written to the current reel; this makes no sense for referred reels for which the player will emit no audio. This code looks at the audio timestamp instead. --- src/lib/dcp_encoder.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/dcp_encoder.cc') diff --git a/src/lib/dcp_encoder.cc b/src/lib/dcp_encoder.cc index 81464c8dc..76bfba5a2 100644 --- a/src/lib/dcp_encoder.cc +++ b/src/lib/dcp_encoder.cc @@ -121,11 +121,10 @@ DCPEncoder::video (shared_ptr data, DCPTime time) _j2k_encoder->encode (data, time); } -/** The audio data passed into this method must be contiguous and start from the last accurate seek time */ void DCPEncoder::audio (shared_ptr data, DCPTime time) { - _writer->write (data); + _writer->write (data, time); shared_ptr job = _job.lock (); DCPOMATIC_ASSERT (job); -- cgit v1.2.3