summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Ringwald <mringwal@inf.ethz.ch>2008-04-08 00:08:20 +0100
committerMatthias Ringwald <mringwal@inf.ethz.ch>2008-04-08 00:08:20 +0100
commit964f55aef546a1f1574c9f6ec10b3410fe390c34 (patch)
tree23ce75b25a13bf67806542fe40836451d020f1cf
parentc3b403d0e50747042f0f4aa50c7df04bba7da324 (diff)
downloadxine-lib-964f55aef546a1f1574c9f6ec10b3410fe390c34.tar.gz
xine-lib-964f55aef546a1f1574c9f6ec10b3410fe390c34.tar.bz2
Fix YUY2 Video Output on Mac OS X XineOpenGLView
For YUY2, twice the amount of data was copied into texture_buffer leading to a segfault. The crash happened with visualizers such as GOOM and oscope but not for normal video.
-rw-r--r--src/video_out/video_out_macosx.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_out/video_out_macosx.m b/src/video_out/video_out_macosx.m
index 4621d31b9..a13de239f 100644
--- a/src/video_out/video_out_macosx.m
+++ b/src/video_out/video_out_macosx.m
@@ -207,7 +207,7 @@ static void macosx_display_frame(vo_driver_t *vo_driver, vo_frame_t *vo_frame) {
break;
case XINE_IMGFMT_YUY2:
xine_fast_memcpy (texture_buffer, vo_frame->base[0],
- vo_frame->pitches[0] * vo_frame->height * 2);
+ vo_frame->pitches[0] * vo_frame->height);
[driver->view updateTexture];
break;
default: