From 5185b97c8ae56a9a0f7d21883e5479d7a9d0552d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 1 Sep 2006 10:07:05 +0000 Subject: [PATCH] gst/videotestsrc/videotestsrc.c: Fix stride for YVYU, should be word-aligned (#353658). Original commit message from CVS: * gst/videotestsrc/videotestsrc.c: (paint_setup_YVYU): Fix stride for YVYU, should be word-aligned (#353658). --- ChangeLog | 5 +++++ gst/videotestsrc/videotestsrc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29bffdca92..704243f374 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-01 Tim-Philipp Müller + + * gst/videotestsrc/videotestsrc.c: (paint_setup_YVYU): + Fix stride for YVYU, should be word-aligned (#353658). + 2006-08-31 Tim-Philipp Müller * gst/adder/gstadder.c: (gst_adder_src_event): diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index 88af255ec5..efc8a81375 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -746,7 +746,7 @@ paint_setup_YVYU (paintinfo * p, unsigned char *dest) p->yp = dest; p->up = dest + 3; p->vp = dest + 1; - p->ystride = GST_ROUND_UP_2 (p->width * 2); + p->ystride = GST_ROUND_UP_2 (p->width) * 2; p->endptr = dest + p->ystride * p->height; }