diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-29 10:17:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-12 09:40:37 +0200 |
| commit | 835dd8938830b615d5b3e66272eb56d60bf7c45f (patch) | |
| tree | d25af025bf4a33ed02dbce42e5515487a67f4f98 /src/lib/image_decoder.cc | |
| parent | 1ecdc81645686fcc5a8fb2cb55313d2ca5d1d4a8 (diff) | |
Change how video timing is done.v2.17.3
This commit changes the approach with video timing. Previously,
we would (more-or-less) try to use every video frame from the content
in the output, hoping that they come at a constant frame rate.
This is not always the case, however. Here we preserve the PTS
of video frames, and then when one arrives we output whatever
DCP video frames we can (at the regular DCP frame rate).
Hopefully this will solve a range of sync problems, but it
could also introduce new ones.
Diffstat (limited to 'src/lib/image_decoder.cc')
| -rw-r--r-- | src/lib/image_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/image_decoder.cc b/src/lib/image_decoder.cc index 59dc4e873..ecbbd5134 100644 --- a/src/lib/image_decoder.cc +++ b/src/lib/image_decoder.cc @@ -78,7 +78,7 @@ ImageDecoder::pass () } } - video->emit (film(), _image, _frame_video_position); + video->emit(film(), _image, dcpomatic::ContentTime::from_frames(_frame_video_position, _image_content->video_frame_rate().get_value_or(24))); ++_frame_video_position; return false; } |
