diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-19 03:10:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-19 03:10:26 +0000 |
commit | f4ce853125d48b6c195748f1612acbb764c94f64 (patch) | |
tree | e0d2939a1733348bca9c1246520deb7a2a335eaf /libavcodec/h264_cabac.c | |
parent | e69bfde6b2ee40ea202534826baab799d36f0588 (diff) | |
download | ffmpeg-f4ce853125d48b6c195748f1612acbb764c94f64.tar.gz |
get rid of an if() 1 cpu cycle faster.
Originally committed as revision 21889 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_cabac.c')
-rw-r--r-- | libavcodec/h264_cabac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index 641827db5f..8d471b2ad7 100644 --- a/libavcodec/h264_cabac.c +++ b/libavcodec/h264_cabac.c @@ -937,8 +937,7 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) { } } while( k-- ) { - if( get_cabac_bypass( &h->cabac ) ) - mvd += 1 << k; + mvd += get_cabac_bypass( &h->cabac )<<k; } } return get_cabac_bypass_sign( &h->cabac, -mvd ); |