From: Carl Hetherington Date: Thu, 2 Dec 2021 19:16:02 +0000 (+0100) Subject: Fix possible incorrect eye mapping with 3D-alternate sources. X-Git-Tag: checked-for-v2.16.x~155 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=8f1c55575379cf22389ec034bfce605eba0f47d3 Fix possible incorrect eye mapping with 3D-alternate sources. --- diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index cee4bcdc6..8d6f7e6c7 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -105,7 +105,7 @@ VideoDecoder::emit (shared_ptr film, shared_ptr im if (vft == VideoFrameType::THREE_D_ALTERNATE) { frame = decoder_frame / 2; - eyes = (decoder_frame % 1) ? Eyes::RIGHT : Eyes::LEFT; + eyes = (decoder_frame % 2) ? Eyes::RIGHT : Eyes::LEFT; } else { frame = decoder_frame; if (vft == VideoFrameType::THREE_D) {