diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-09-26 23:01:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-09-26 23:01:42 +0000 |
commit | 718455951c74269a95117b117a2790c4edeef979 (patch) | |
tree | 3daa2a7a8bf4dee9c6531e175f3eba0d75a82a19 /libavcodec | |
parent | 0f74857497709eec01319ca04aabcec568546a2f (diff) | |
download | ffmpeg-718455951c74269a95117b117a2790c4edeef979.tar.gz |
lowres chroma fix
Originally committed as revision 3517 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 1b6aeb804a..95c146429e 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -2640,8 +2640,8 @@ static always_inline void mpeg_motion_lowres(MpegEncContext *s, 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 |