diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-02-26 09:54:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-02-26 09:54:01 +0100 |
| commit | ccec012f718b9d26e7ffce8ea250ff43fbab3d18 (patch) | |
| tree | 0ca2078c56860b69ef08b3759f4faefb262ec06c | |
| parent | 2e13b6693de34174da11271485ffed59a6d66cae (diff) | |
Fix warning.
| -rw-r--r-- | src/lib/video_decoder.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 18eb1acc1..ce42f428f 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -136,6 +136,9 @@ VideoDecoder::emit (shared_ptr<const Film> film, shared_ptr<const ImageProxy> im frame = _position->frames_round(afr); eyes = Eyes::RIGHT; } + } else { + /* This should not happen; see above */ + frame = _position->frames_round(afr) + 1; } } else if (vft == VideoFrameType::THREE_D_ALTERNATE) { DCPOMATIC_ASSERT (_last_emitted_eyes); |
