diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-24 01:57:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-24 01:57:31 +0000 |
commit | 9127a369ad35159ac61a3f9bf0b0f30c06fa309f (patch) | |
tree | e0da6de3b3a46903e6e9674f1ff526a0d24a5e64 /libavcodec/h264.h | |
parent | 5c34e36a2343389f6ed77fd8722d583470e8f0af (diff) | |
download | ffmpeg-9127a369ad35159ac61a3f9bf0b0f30c06fa309f.tar.gz |
Replace /2 by faster >>1 as the mvd values are now all positive.
Originally committed as revision 22013 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 2ae5e072d1..dcfa731d95 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -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 |