diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-10 22:51:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-11 14:15:44 +0100 |
| commit | 0e8a1ab7c41756115f44229053e1e7024530fb32 (patch) | |
| tree | ddeeb9969f5c783ba208574da67c9c7fc591b623 /src/lib/ffmpeg_decoder.cc | |
| parent | c247a1b81b78164acf84f4b003062fab25e64b53 (diff) | |
Make DecoderPart::_position an optional.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 62d4d2655..04aa022b2 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -126,7 +126,7 @@ FFmpegDecoder::flush () if (video) { double const vfr = _ffmpeg_content->video_frame_rate().get(); Frame const f = full_length.frames_round (vfr); - Frame v = video->position(film()).frames_round(vfr) + 1; + Frame v = video->position(film()).get_value_or(ContentTime()).frames_round(vfr) + 1; while (v < f) { video->emit (film(), shared_ptr<const ImageProxy> (new RawImageProxy (_black_image)), v); ++v; |
