[FFmpeg-cvslog] mpegvideo: fix 422 lowres

Michael Niedermayer git at videolan.org
Sat May 7 00:07:18 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May  6 19:30:14 2011 +0200| [c25a8d7dfbdd5f2cf3c275c51697cf0941bbbdcf] | committer: Michael Niedermayer

mpegvideo: fix 422 lowres
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c25a8d7dfbdd5f2cf3c275c51697cf0941bbbdcf
---

 libavcodec/mpegvideo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 40e984b..b4b6a39 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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;



More information about the ffmpeg-cvslog mailing list