diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-04-08 16:23:09 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-04-08 16:23:09 +0000 |
commit | dee8597fcf514871e72c2d20ab5a1969e5b3e67e (patch) | |
tree | 71663ddb50c0a2ab47d91f8ff3556b40ae30f416 | |
parent | b48febac40063febb0c332f37578c147a8d36a3f (diff) |
fix i420 handling, bug found by rgselk at IRC <rgselknospam@yahoo.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9881 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | vidix/drivers/mach64_vid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vidix/drivers/mach64_vid.c b/vidix/drivers/mach64_vid.c index 4a6cf0df07..9c18ce999b 100644 --- a/vidix/drivers/mach64_vid.c +++ b/vidix/drivers/mach64_vid.c @@ -791,10 +791,6 @@ for(i=0; i<32; i++){ config->offset.y= 0; config->offset.u= (pitch*src_h + 15)&~15; config->offset.v= (config->offset.u + (pitch*src_h>>2) + 15)&~15; - - src_offset_y= config->offset.y + top*pitch + left; - src_offset_u= config->offset.u + (top*pitch>>2) + (left>>1); - src_offset_v= config->offset.v + (top*pitch>>2) + (left>>1); if(besr.fourcc == IMGFMT_I420 || besr.fourcc == IMGFMT_IYUV) { @@ -803,6 +799,10 @@ for(i=0; i<32; i++){ config->offset.u = config->offset.v; config->offset.v = tmp; } + + src_offset_y= config->offset.y + top*pitch + left; + src_offset_u= config->offset.u + (top*pitch>>2) + (left>>1); + src_offset_v= config->offset.v + (top*pitch>>2) + (left>>1); } else if(besr.fourcc == IMGFMT_YVU9) { |