summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-12 08:54:44 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-12 08:54:44 +0000
commitc445b76647a274ec4c4e811719881393a7a24813 (patch)
treea19a4e5447bdb0a36aaf20753d6d603b0be9146d /libvo
parent0b89e7d75e6a4050f7aeb58f775c985e95f11119 (diff)
downloadmpv-c445b76647a274ec4c4e811719881393a7a24813.tar.bz2
mpv-c445b76647a274ec4c4e811719881393a7a24813.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c3
1 files changed, 1 insertions, 2 deletions
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;
}