diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-24 20:45:30 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-24 20:45:30 +0000 |
commit | e2cad38b0a76076b93c8186ab0522f0f3a1e691a (patch) | |
tree | 1edbd06dd97e523a08c5fd66ccd4e237e6b2fefb /libvo/vo_xmga.c | |
parent | e81578975e57a1415c712d31f27aed08bca188cf (diff) | |
download | mpv-e2cad38b0a76076b93c8186ab0522f0f3a1e691a.tar.bz2 mpv-e2cad38b0a76076b93c8186ab0522f0f3a1e691a.tar.xz |
U,V plane odrer fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5318 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xmga.c')
-rw-r--r-- | libvo/vo_xmga.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index 10ce8477b7..59c51c4f4b 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -218,17 +218,13 @@ static uint32_t config( uint32_t width, uint32_t height, uint32_t d_width, uint3 { case IMGFMT_YV12: height+=height&1; - mga_vid_config.format=MGA_VID_FORMAT_YV12; + mga_vid_config.format=MGA_VID_FORMAT_IYUV; mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2; break; case IMGFMT_I420: - height+=height&1; - mga_vid_config.format=MGA_VID_FORMAT_I420; - mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2; - break; case IMGFMT_IYUV: height+=height&1; - mga_vid_config.format=MGA_VID_FORMAT_IYUV; + mga_vid_config.format=MGA_VID_FORMAT_YV12; mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2; break; case IMGFMT_YUY2: |