Replace /2 by faster >>1 as the mvd values are now all positive.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Feb 2010 01:57:31 +0000 (01:57 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Feb 2010 01:57:31 +0000 (01:57 +0000)
Originally committed as revision 22013 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.h

index 2ae5e07..dcfa731 100644 (file)
@@ -1132,7 +1132,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){
                     if(!IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\
                         h->ref_cache[list][idx] <<= 1;\
                         h->mv_cache[list][idx][1] /= 2;\
-                        h->mvd_cache[list][idx][1] /= 2;\
+                        h->mvd_cache[list][idx][1] >>=1;\
                     }
                     MAP_MVS
 #undef MAP_F2F