summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2014-06-04 10:19:14 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2014-06-04 10:19:14 +0300
commitd74d9f45b75f776b41967e74fb777c2527a11015 (patch)
treec34a8b93e4c49c27b3bcb2b60b6d3bb9154f0b79 /src
parent5af17837dc5b8891f20fc6701e6da487ce66eeec (diff)
downloadxine-lib-d74d9f45b75f776b41967e74fb777c2527a11015.tar.gz
xine-lib-d74d9f45b75f776b41967e74fb777c2527a11015.tar.bz2
video_out_mmal: fix yuy2 pitch
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_mmal.c2
1 files changed, 1 insertions, 1 deletions
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": "