summaryrefslogtreecommitdiff
path: root/ext/aalib
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-01 17:15:57 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-01 17:42:05 +0100
commit431ecdf6b790746ab915fb9a1c24ed041e79fb0c (patch)
tree5e661cb74ac9faebfd463e06daf3e228344d75ab /ext/aalib
parent3b846d7c7dc8d9f0732251e5ed3ed754d6d033e7 (diff)
downloadgstreamer-plugins-good-431ecdf6b790746ab915fb9a1c24ed041e79fb0c.tar.gz
aasink: fix stride
Diffstat (limited to 'ext/aalib')
-rw-r--r--ext/aalib/gstaasink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c
index 62a885b6e..5679c8940 100644
--- a/ext/aalib/gstaasink.c
+++ b/ext/aalib/gstaasink.c
@@ -273,7 +273,7 @@ gst_aasink_init (GstAASink * aasink)
static void
gst_aasink_scale (GstAASink * aasink, guchar * src, guchar * dest,
- gint sw, gint sh, gint dw, gint dh)
+ gint sw, gint sh, gint ss, gint dw, gint dh)
{
gint ypos, yinc, y;
gint xpos, xinc, x;
@@ -287,7 +287,7 @@ gst_aasink_scale (GstAASink * aasink, guchar * src, guchar * dest,
for (y = dh; y; y--) {
while (ypos > 0x10000) {
ypos -= 0x10000;
- src += sw;
+ src += ss;
}
xpos = 0x10000;
{
@@ -334,6 +334,7 @@ gst_aasink_render (GstBaseSink * basesink, GstBuffer * buffer)
aa_image (aasink->context), /* dest */
GST_VIDEO_INFO_WIDTH (&aasink->info), /* sw */
GST_VIDEO_INFO_HEIGHT (&aasink->info), /* sh */
+ GST_VIDEO_FRAME_PLANE_STRIDE (&frame, 0), /* ss */
aa_imgwidth (aasink->context), /* dw */
aa_imgheight (aasink->context)); /* dh */