diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-22 11:27:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-22 11:27:55 +0100 |
| commit | 9adf0dc99f0da3d45950a693193b9123d025b668 (patch) | |
| tree | 99eea55571a76030844763cd0499273d1b539d93 /src/lib/transcoder.cc | |
| parent | ac35bf2a80c9afae9dc5fcb0261929053162f44d (diff) | |
Write subtitle intrinsic durations to match the picture in the reel; sort out test fiasco after making libdcp compare DCPs properly again.
Diffstat (limited to 'src/lib/transcoder.cc')
| -rw-r--r-- | src/lib/transcoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index 1012c4544..9d8eebe25 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -62,7 +62,8 @@ Transcoder::go () _encoder->begin (); DCPTime const frame = DCPTime::from_frames (1, _film->video_frame_rate ()); - for (DCPTime t; t < _film->length(); t += frame) { + DCPTime const length = _film->length (); + for (DCPTime t; t < length; t += frame) { list<shared_ptr<PlayerVideo> > v = _player->get_video (t, true); for (list<shared_ptr<PlayerVideo> >::const_iterator i = v.begin(); i != v.end(); ++i) { _encoder->enqueue (*i); |
