dvbsuboverlay: fix rendering artefacts

Initialize source x position for odd height special case.
This commit is contained in:
Janne Grunau 2010-12-16 15:33:45 +00:00 committed by Tim-Philipp Müller
parent b191fb2b05
commit b73ae45460

View file

@ -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)]];