[MPlayer-cvslog] r23300 - trunk/libvo/vo_x11.c

reimar subversion at mplayerhq.hu
Sat May 12 10:54:45 CEST 2007


Author: reimar
Date: Sat May 12 10:54:44 2007
New Revision: 23300

Log:
Factor common code out of if in x11_common.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 10:54:44 2007
@@ -654,13 +654,12 @@ static int draw_slice(uint8_t * src[], i
     {
         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;
 }
 



More information about the MPlayer-cvslog mailing list