# HG changeset patch # User michael # Date 1096239702 0 # Node ID c93da911905ea64e53162a8519657375af4272ca # Parent d7fdb7be7df49df6570363621c48c5f16b0e9b04 lowres chroma fix diff -r d7fdb7be7df4 -r c93da911905e mpegvideo.c --- a/mpegvideo.c Sun Sep 26 21:28:31 2004 +0000 +++ b/mpegvideo.c Sun Sep 26 23:01:42 2004 +0000 @@ -2640,8 +2640,8 @@ src_y =(s->mb_y*2*block_s>>field_based) + (motion_y >> (lowres+1)); if (s->out_format == FMT_H263) { - uvsx = sx | ((motion_x & 2)>>1); - uvsy = sy | ((motion_y & 2)>>1); + uvsx = ((motion_x>>1) & s_mask) | (sx&1); + uvsy = ((motion_y>>1) & s_mask) | (sy&1); uvsrc_x = src_x>>1; uvsrc_y = src_y>>1; }else if(s->out_format == FMT_H261){//even chroma mv's are full pel in H261