[FFmpeg-cvslog] r22013 - trunk/libavcodec/h264.h

michael subversion
Wed Feb 24 02:57:32 CET 2010


Author: michael
Date: Wed Feb 24 02:57:31 2010
New Revision: 22013

Log:
Replace /2 by faster >>1 as the mvd values are now all positive.

Modified:
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Wed Feb 24 02:56:27 2010	(r22012)
+++ trunk/libavcodec/h264.h	Wed Feb 24 02:57:31 2010	(r22013)
@@ -1132,7 +1132,7 @@ static void fill_decode_caches(H264Conte
                     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



More information about the ffmpeg-cvslog mailing list