From f296ab2de38327da5526918cf0af6f943b2b28ec Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 19 Apr 2002 23:13:36 +0000 Subject: [PATCH] workaround yv12 vs. i420 'bug' of swscale git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5710 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_x11.c | 1 + 1 file changed, 1 insertion(+) 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;