diff libvo/vo_x11.c @ 23282:4e416a0d7665

Factor common code out of if in x11_common.c
author reimar
date Sat, 12 May 2007 08:54:44 +0000
parents 17bf4f4b0715
children 907b3bb595c7
line wrap: on
line diff
--- a/libvo/vo_x11.c	Fri May 11 23:15:11 2007 +0000
+++ b/libvo/vo_x11.c	Sat May 12 08:54:44 2007 +0000
@@ -654,13 +654,12 @@
     {
         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;
 }