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).
This commit is contained in:
Tim-Philipp Müller 2006-09-01 10:07:05 +00:00
parent 6863a09803
commit 5185b97c8a
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-09-01 Tim-Philipp Müller <tim at centricular dot net>
* gst/videotestsrc/videotestsrc.c: (paint_setup_YVYU):
Fix stride for YVYU, should be word-aligned (#353658).
2006-08-31 Tim-Philipp Müller <tim at centricular dot net>
* gst/adder/gstadder.c: (gst_adder_src_event):

View file

@ -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;
}