From c445b76647a274ec4c4e811719881393a7a24813 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 12 May 2007 08:54:44 +0000 Subject: 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 --- libvo/vo_x11.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index a89734b005..4053cfd765 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -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; } -- cgit v1.2.3