diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-12 08:54:44 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-12 08:54:44 +0000 |
commit | c445b76647a274ec4c4e811719881393a7a24813 (patch) | |
tree | a19a4e5447bdb0a36aaf20753d6d603b0be9146d | |
parent | 0b89e7d75e6a4050f7aeb58f775c985e95f11119 (diff) | |
download | mpv-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
-rw-r--r-- | libvo/vo_x11.c | 3 |
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; } |