diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-21 23:18:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-21 23:18:57 +0100 |
| commit | 0c4ec68f554996b4321cd0c0c6a80d9b6c9df321 (patch) | |
| tree | 29923d72901997225a54002c9c584b57f47bd1e0 /src/lib/video_decoder.cc | |
| parent | 90d00be38544256a7e54143264f8527d225035d1 (diff) | |
Fix _position with VIDEO_FRAME_TYPE_3D_ALTERNATE.
Diffstat (limited to 'src/lib/video_decoder.cc')
| -rw-r--r-- | src/lib/video_decoder.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 9afbd31c4..eb5d2e71f 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -76,6 +76,7 @@ VideoDecoder::emit (shared_ptr<const ImageProxy> image, Frame frame) } case VIDEO_FRAME_TYPE_3D_ALTERNATE: Data (ContentVideo (image, frame / 2, (frame % 2) ? EYES_RIGHT : EYES_LEFT, PART_WHOLE)); + frame /= 2; break; case VIDEO_FRAME_TYPE_3D_LEFT_RIGHT: Data (ContentVideo (image, frame, EYES_LEFT, PART_LEFT_HALF)); |
