summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-15 21:01:19 +0000
committeratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-15 21:01:19 +0000
commit20ea207eb5a8cbd126b102e3c34ad0706225ebad (patch)
tree57d49297d42aa25a017da0c3f45859f7521845e0 /libvo
parentc563c20313b0cd013a2d65fdb05fbb595f03ee78 (diff)
downloadmpv-20ea207eb5a8cbd126b102e3c34ad0706225ebad.tar.bz2
mpv-20ea207eb5a8cbd126b102e3c34ad0706225ebad.tar.xz
fixed osd for UYVY image format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@451 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 31f9e24416..9c2a826ca9 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -272,10 +272,12 @@ static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned
vo_draw_alpha_yv12(w,h,src,srca,stride,xvimage[0]->data+image_width*y0+x0,image_width);
break;
case IMGFMT_YUY2:
- case IMGFMT_UYVY:
case IMGFMT_YVYU:
vo_draw_alpha_yuy2(w,h,src,srca,stride,xvimage[0]->data+2*(image_width*y0+x0),2*image_width);
break;
+ case IMGFMT_UYVY:
+ vo_draw_alpha_yuy2(w,h,src,srca,stride,xvimage[0]->data+2*(image_width*y0+x0)+1,2*image_width);
+ break;
}
}