提交 d2744e19 编写于 作者: M Michael Niedermayer

use RSHIFT

Originally committed as revision 5773 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 4501e678
...@@ -1145,17 +1145,10 @@ static int unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) ...@@ -1145,17 +1145,10 @@ static int unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb)
motion_y[4] += motion_y[k]; motion_y[4] += motion_y[k];
} }
if (motion_x[4] >= 0) motion_x[5]=
motion_x[4] = (motion_x[4] + 2) / 4; motion_x[4]= RSHIFT(motion_x[4], 2);
else motion_y[5]=
motion_x[4] = (motion_x[4] - 2) / 4; motion_y[4]= RSHIFT(motion_y[4], 2);
motion_x[5] = motion_x[4];
if (motion_y[4] >= 0)
motion_y[4] = (motion_y[4] + 2) / 4;
else
motion_y[4] = (motion_y[4] - 2) / 4;
motion_y[5] = motion_y[4];
/* vector maintenance; vector[3] is treated as the /* vector maintenance; vector[3] is treated as the
* last vector in this case */ * last vector in this case */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册