summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-02-19 03:10:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-02-19 03:10:26 +0000
commitf4ce853125d48b6c195748f1612acbb764c94f64 (patch)
treee0d2939a1733348bca9c1246520deb7a2a335eaf
parente69bfde6b2ee40ea202534826baab799d36f0588 (diff)
get rid of an if() 1 cpu cycle faster.
Originally committed as revision 21889 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264_cabac.c3
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 );