Commit 44a7cdbb authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22013 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f9352742
...@@ -1132,7 +1132,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){ ...@@ -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){\ if(!IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\
h->ref_cache[list][idx] <<= 1;\ h->ref_cache[list][idx] <<= 1;\
h->mv_cache[list][idx][1] /= 2;\ h->mv_cache[list][idx][1] /= 2;\
h->mvd_cache[list][idx][1] /= 2;\ h->mvd_cache[list][idx][1] >>=1;\
} }
MAP_MVS MAP_MVS
#undef MAP_F2F #undef MAP_F2F
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment