summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-27 16:04:53 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-27 16:04:53 +0000
commit20faf3dc0d48c4daf2f29322f961ed18b6d82ae4 (patch)
tree06cf4c4f6cec1379c33f22f1b3dc06f55a70d66c /libvo/vo_x11.c
parentba39e1594824d05ef32d6c7457b5c2250c7be250 (diff)
downloadmpv-20faf3dc0d48c4daf2f29322f961ed18b6d82ae4.tar.bz2
mpv-20faf3dc0d48c4daf2f29322f961ed18b6d82ae4.tar.xz
10000l (YUV vs. YVU swscale fix/cleanup)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9698 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r--libvo/vo_x11.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 0306f06f0d..8953b73646 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -241,7 +241,6 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
title = strdup("MPlayer X11 (XImage/Shm) render");
in_format=format;
- if(in_format==IMGFMT_I420 || in_format==IMGFMT_IYUV) in_format=IMGFMT_YV12;
srcW= width;
srcH= height;
vo_dx=( vo_screenwidth - d_width ) / 2; vo_dy=( vo_screenheight - d_height ) / 2;
@@ -508,13 +507,13 @@ static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y
{
dstStride[0]= -image_width*((bpp+7)/8);
dst[0]=ImageData - dstStride[0]*(image_height-1);
- sws_scale(swsContext,src,stride,y,h,dst, dstStride);
+ sws_scale_ordered(swsContext,src,stride,y,h,dst, dstStride);
}
else
{
dstStride[0]=image_width*((bpp+7)/8);
dst[0]=ImageData;
- sws_scale(swsContext,src,stride,y,h,dst, dstStride);
+ sws_scale_ordered(swsContext,src,stride,y,h,dst, dstStride);
}
return 0;
}