changeset 23282:4e416a0d7665

Factor common code out of if in x11_common.c
author reimar
date Sat, 12 May 2007 08:54:44 +0000
parents e1935bbb44e2
children 907b3bb595c7
files libvo/vo_x11.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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;
 }