# HG changeset patch # User michael # Date 1266976651 0 # Node ID e817a3c2ec2e84175c8d0dcfdb2c1e32c43b4f28 # Parent e9163a5b650f0633bdfe793aff964468768fced1 Replace /2 by faster >>1 as the mvd values are now all positive. diff -r e9163a5b650f -r e817a3c2ec2e h264.h --- a/h264.h Wed Feb 24 01:56:27 2010 +0000 +++ b/h264.h Wed Feb 24 01:57:31 2010 +0000 @@ -1132,7 +1132,7 @@ 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