[MPlayer-cvslog] r23302 - trunk/libvo/vo_x11.c
reimar
subversion at mplayerhq.hu
Sat May 12 11:06:08 CEST 2007
Author: reimar
Date: Sat May 12 11:06:07 2007
New Revision: 23302
Log:
Simplify -flip handling on vo_x11.c
Modified:
trunk/libvo/vo_x11.c
Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c (original)
+++ trunk/libvo/vo_x11.c Sat May 12 11:06:07 2007
@@ -650,14 +650,12 @@ static int draw_slice(uint8_t * src[], i
dstStride[1] = dstStride[2] = 0;
dst[1] = dst[2] = NULL;
+ dstStride[0] = image_width * ((bpp + 7) / 8);
+ dst[0] = ImageData;
if (Flip_Flag)
{
- dstStride[0] = -image_width * ((bpp + 7) / 8);
- dst[0] = ImageData - (long)dstStride[0] * (image_height - 1);
- } else
- {
- dstStride[0] = image_width * ((bpp + 7) / 8);
- dst[0] = ImageData;
+ dst[0] += dstStride[0] * (image_height - 1);
+ dstStride[0] = -dstStride[0];
}
sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride);
return 0;
More information about the MPlayer-cvslog
mailing list