From 37f6d73af6d8f46a4e75e02d44f2418c55ae1ba0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 6 Jan 2005 18:17:35 +0000 Subject: 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 --- gst/games/gstvideoimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst') 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); -- cgit v1.2.1