From ccec012f718b9d26e7ffce8ea250ff43fbab3d18 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 26 Feb 2021 09:54:01 +0100 Subject: [PATCH] Fix warning. --- src/lib/video_decoder.cc | 3 +++ 1 file changed, 3 insertions(+) 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 film, shared_ptr 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); -- 2.30.2