From 2f6f78caa323e76f09fbb1c19b302afd37ccfd2e Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Fri, 10 Dec 2010 12:27:54 +0100 Subject: [PATCH] dvbsuboverlay: fix luma stride for scaled subtitles (display width != width) --- gst/dvbsuboverlay/gstdvbsuboverlay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index 3f261e58b4..f18dd0178e 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -667,8 +667,8 @@ blit_i420 (GstDVBSubOverlay * overlay, DVBSubtitles * subs, GstBuffer * buffer) sy += 2 * ystep; - dst_y += y_stride + (y_stride - w); - dst_y2 += y_stride + (y_stride - w); + dst_y += y_stride + (y_stride - dw); + dst_y2 += y_stride + (y_stride - dw); dst_u += u_stride - w2; dst_v += v_stride - w2; }