projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90d00be
)
Fix _position with VIDEO_FRAME_TYPE_3D_ALTERNATE.
author
Carl Hetherington
<cth@carlh.net>
Sun, 21 May 2017 22:18:57 +0000
(23:18 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 21 May 2017 22:18:57 +0000
(23:18 +0100)
src/lib/video_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/video_decoder.cc
b/src/lib/video_decoder.cc
index 9afbd31c46bbd4d52304b478c054fee62fa2e97d..eb5d2e71f8d340b34cf4f8d6e27e51dd4628b1b7 100644
(file)
--- 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));