aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-10-19 14:54:34 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-10-19 14:54:34 +0000
commitf624f029f0f39b26e64eb26316966c18ef7a6074 (patch)
tree5873a2dca503e757f80837ffa3b681b2c69d26d7 /libavcodec
parentaa1da263aa47262a869ff2c9ca661ad292bdf48d (diff)
downloadffmpeg-f624f029f0f39b26e64eb26316966c18ef7a6074.tar.gz
slightly faster decode_cabac_mb_mvd()
Originally committed as revision 6735 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 12019adab4..f19edd9981 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -6003,8 +6003,7 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
mvd += 1 << k;
}
}
- if( get_cabac_bypass( &h->cabac ) ) return -mvd;
- else return mvd;
+ return get_cabac_bypass_sign( &h->cabac, -mvd );
}
static int inline get_cabac_cbf_ctx( H264Context *h, int cat, int idx ) {