Factor common code out of if in x11_common.c

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23300 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-05-12 08:54:44 +00:00
parent 0b89e7d75e
commit c445b76647
1 changed files with 1 additions and 2 deletions

View File

@ -654,13 +654,12 @@ static int draw_slice(uint8_t * src[], int stride[], int w, int h,
{
dstStride[0] = -image_width * ((bpp + 7) / 8);
dst[0] = ImageData - dstStride[0] * (image_height - 1);
sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride);
} else
{
dstStride[0] = image_width * ((bpp + 7) / 8);
dst[0] = ImageData;
sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride);
}
sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride);
return 0;
}