[Ffmpeg-cvslog] r5773 - trunk/libavcodec/vp3.c

michael subversion
Sun Jul 16 23:09:33 CEST 2006


Author: michael
Date: Sun Jul 16 23:09:32 2006
New Revision: 5773

Modified:
   trunk/libavcodec/vp3.c

Log:
use RSHIFT


Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	(original)
+++ trunk/libavcodec/vp3.c	Sun Jul 16 23:09:32 2006
@@ -1145,17 +1145,10 @@
                         motion_y[4] += motion_y[k];
                     }
 
-                    if (motion_x[4] >= 0)
-                        motion_x[4] = (motion_x[4] + 2) / 4;
-                    else
-                        motion_x[4] = (motion_x[4] - 2) / 4;
-                    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];
+                    motion_x[5]=
+                    motion_x[4]= RSHIFT(motion_x[4], 2);
+                    motion_y[5]=
+                    motion_y[4]= RSHIFT(motion_y[4], 2);
 
                     /* vector maintenance; vector[3] is treated as the
                      * last vector in this case */




More information about the ffmpeg-cvslog mailing list