From b73ae45460e552040c7f62b61951adb0f08df8e1 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Thu, 16 Dec 2010 15:33:45 +0000 Subject: [PATCH] dvbsuboverlay: fix rendering artefacts Initialize source x position for odd height special case. --- gst/dvbsuboverlay/gstdvbsuboverlay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index 9962077457..56c3a615b2 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -711,6 +711,7 @@ blit_i420 (GstDVBSubOverlay * overlay, DVBSubtitles * subs, GstBuffer * buffer) /* Odd height */ if (y < dh) { + sx = 0; for (x = 0; x < dw - 1; x += 2) { color = sub_region->pict.palette[src[(sy >> 16) * src_stride + (sx >> 16)]];