From d74d9f45b75f776b41967e74fb777c2527a11015 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Wed, 4 Jun 2014 10:19:14 +0300 Subject: video_out_mmal: fix yuy2 pitch --- src/video_out/video_out_mmal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_out/video_out_mmal.c b/src/video_out/video_out_mmal.c index 4ac343f57..2300f6d1f 100644 --- a/src/video_out/video_out_mmal.c +++ b/src/video_out/video_out_mmal.c @@ -360,7 +360,7 @@ static void mmal_update_frame_format (vo_driver_t *this_gen, frame->vo_frame.base[1] = frame->vo_frame.base[0] + width * height; frame->vo_frame.base[2] = frame->vo_frame.base[1] + width/2 * height/2; } else if (format == XINE_IMGFMT_YUY2) { - frame->vo_frame.pitches[0] = width; + frame->vo_frame.pitches[0] = width * 2; frame->vo_frame.base[0] = frame->buffer->data; } else { xprintf(this->xine, XINE_VERBOSITY_LOG, LOG_MODULE": " -- cgit v1.2.3