summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2005-01-06 18:17:35 +0000
committerBenjamin Otte <otte@gnome.org>2005-01-06 18:17:35 +0000
commit37f6d73af6d8f46a4e75e02d44f2418c55ae1ba0 (patch)
tree98aa069f22c85fcf327fe1476e8f9c998a9fb8d6
parent2ed845fcad548a83ff96848b0d056e36435b5fcc (diff)
downloadgst-plugins-bad-37f6d73af6d8f46a4e75e02d44f2418c55ae1ba0.tar.gz
gst-plugins-bad-37f6d73af6d8f46a4e75e02d44f2418c55ae1ba0.tar.bz2
gst-plugins-bad-37f6d73af6d8f46a4e75e02d44f2418c55ae1ba0.zip
gst/games/gstvideoimage.c: fix stupid typo that borked copying on YUY2
Original commit message from CVS: * gst/games/gstvideoimage.c: (copy_hline_YUY2): fix stupid typo that borked copying on YUY2
-rw-r--r--ChangeLog5
-rw-r--r--gst/games/gstvideoimage.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4dc65abc..e4c36521 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-01-06 Benjamin Otte <otte@gnome.org>
+ * gst/games/gstvideoimage.c: (copy_hline_YUY2):
+ fix stupid typo that borked copying on YUY2
+
+2005-01-06 Benjamin Otte <otte@gnome.org>
+
* gst/games/gstpuzzle.c: (draw_puzzle):
fix edges when image sizes aren't multiples of tile sizes
diff --git a/gst/games/gstvideoimage.c b/gst/games/gstvideoimage.c
index 7e3436f0..c18843c8 100644
--- a/gst/games/gstvideoimage.c
+++ b/gst/games/gstvideoimage.c
@@ -493,7 +493,7 @@ copy_hline_YUY2 (GstVideoImage * dest, int xdest, int ydest,
GstVideoImage * src, int xsrc, int ysrc, int w)
{
int destoffset = ydest * dest->ystride;
- int srcoffset = ydest * src->ystride;
+ int srcoffset = ysrc * src->ystride;
memcpy (dest->yp + destoffset + xdest * 2, src->yp + srcoffset + xsrc * 2,
w * 2);