summaryrefslogtreecommitdiffstats
path: root/libvo/vo_x11.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-19 23:13:36 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-19 23:13:36 +0000
commitf296ab2de38327da5526918cf0af6f943b2b28ec (patch)
tree76cbccdb905c0484c0224ee65026c89fc0cf6757 /libvo/vo_x11.c
parentd6b00e3871f56fd4b3c9946356b68286e4f5be96 (diff)
downloadmpv-f296ab2de38327da5526918cf0af6f943b2b28ec.tar.bz2
mpv-f296ab2de38327da5526918cf0af6f943b2b28ec.tar.xz
workaround yv12 vs. i420 'bug' of swscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5710 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r--libvo/vo_x11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index c132f0cce2..32ef9609ce 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -250,6 +250,7 @@ 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;