gst/videotestsrc/videotestsrc.c: Fix stride for YVYU, should be word-aligned (#353658).
authorTim-Philipp Müller <tim@centricular.net>
Fri, 1 Sep 2006 10:07:05 +0000 (10:07 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 1 Sep 2006 10:07:05 +0000 (10:07 +0000)
Original commit message from CVS:
* gst/videotestsrc/videotestsrc.c: (paint_setup_YVYU):
Fix stride for YVYU, should be word-aligned (#353658).

ChangeLog
gst/videotestsrc/videotestsrc.c

index 29bffdc..704243f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 88af255..efc8a81 100644 (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;
 }