Fix warning.
authorCarl Hetherington <cth@carlh.net>
Fri, 26 Feb 2021 08:54:01 +0000 (09:54 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 26 Feb 2021 08:54:01 +0000 (09:54 +0100)
src/lib/video_decoder.cc

index 18eb1acc15ff5d1f82ad5bc642ec941c1d233dae..ce42f428f6711c460bc37632cf26418796f990c6 100644 (file)
@@ -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);