[FFmpeg-cvslog] r17261 - trunk/libavcodec/mpegvideo_xvmc.c

iive subversion
Sat Feb 14 20:02:47 CET 2009


Author: iive
Date: Sat Feb 14 20:02:46 2009
New Revision: 17261

Log:
get rid of the branch prediction

Modified:
   trunk/libavcodec/mpegvideo_xvmc.c

Modified: trunk/libavcodec/mpegvideo_xvmc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_xvmc.c	Sat Feb 14 20:00:51 2009	(r17260)
+++ trunk/libavcodec/mpegvideo_xvmc.c	Sat Feb 14 20:02:46 2009	(r17261)
@@ -226,14 +226,10 @@ void ff_xvmc_decode_mb(MpegEncContext *s
 
 //set correct field references
         if (s->mv_type == MV_TYPE_FIELD || s->mv_type == MV_TYPE_16X8) {
-            if (s->field_select[0][0])
-                mv_block->motion_vertical_field_select |= 1;
-            if (s->field_select[1][0])
-                mv_block->motion_vertical_field_select |= 2;
-            if (s->field_select[0][1])
-                mv_block->motion_vertical_field_select |= 4;
-            if (s->field_select[1][1])
-                mv_block->motion_vertical_field_select |= 8;
+            mv_block->motion_vertical_field_select |= s->field_select[0][0];
+            mv_block->motion_vertical_field_select |= s->field_select[1][0]<<1;
+            mv_block->motion_vertical_field_select |= s->field_select[0][1]<<2;
+            mv_block->motion_vertical_field_select |= s->field_select[1][1]<<3;
         }
     }//!intra
 //time to handle data blocks;




More information about the ffmpeg-cvslog mailing list