mpegvideo: fix 422 lowres
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 May 2011 17:30:14 +0000 (19:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 May 2011 17:32:30 +0000 (19:32 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo.c

index 40e984b..b4b6a39 100644 (file)
@@ -1666,7 +1666,7 @@ static av_always_inline void mpeg_motion_lowres(MpegEncContext *s,
                 uvsx = mx & s_mask;
                 uvsy = motion_y & s_mask;
                 uvsrc_y = src_y;
-                uvsrc_x = s->mb_x*2*block_s               + (mx >> (lowres+1));
+                uvsrc_x = s->mb_x*block_s               + (mx >> (lowres+1));
             } else {
             //Chroma444
                 uvsx = motion_x & s_mask;