Previously the code did not account for referenced audio, so far
[dcpomatic.git] / src / lib / reel_writer.cc
index 1e730259f5dd63d4be2ed77234d674db67998a12..c560909a9f5c1aa2d189a8b3dccc23a3fcd3a313 100644 (file)
@@ -69,7 +69,6 @@ ReelWriter::ReelWriter (
        , _period (period)
        , _last_written_video_frame (-1)
        , _last_written_eyes (EYES_RIGHT)
-       , _total_written_audio_frames (0)
        , _reel_index (reel_index)
        , _reel_count (reel_count)
        , _content_summary (content_summary)
@@ -534,8 +533,6 @@ ReelWriter::write (shared_ptr<const AudioBuffers> audio)
        if (audio) {
                _sound_asset_writer->write (audio->data(), audio->frames());
        }
-
-       _total_written_audio_frames += audio->frames ();
 }
 
 void