From 964f55aef546a1f1574c9f6ec10b3410fe390c34 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 8 Apr 2008 00:08:20 +0100 Subject: 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. --- src/video_out/video_out_macosx.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3