dvbsuboverlay: fix luma stride for scaled subtitles (display width != width)
authorJanne Grunau <janne.grunau@collabora.co.uk>
Fri, 10 Dec 2010 11:27:54 +0000 (12:27 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 15 Dec 2010 19:47:24 +0000 (20:47 +0100)
gst/dvbsuboverlay/gstdvbsuboverlay.c

index 3f261e5..f18dd01 100644 (file)
@@ -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;
     }