diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 19:02:46 +0000 |
---|---|---|
committer | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 19:02:46 +0000 |
commit | 90509ec7bfbd18b89f1fce52fd16f51de09a3685 (patch) | |
tree | e93f138110f7e40b5e50620a130437a0e5066382 | |
parent | 4ec58e1397e2726ec25f8a1b22b83545c9404ddb (diff) | |
download | ffmpeg-90509ec7bfbd18b89f1fce52fd16f51de09a3685.tar.gz |
get rid of the branch prediction
Originally committed as revision 17261 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo_xvmc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c index 44e779648c..e6f9eada82 100644 --- a/libavcodec/mpegvideo_xvmc.c +++ b/libavcodec/mpegvideo_xvmc.c @@ -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; |