summaryrefslogtreecommitdiff
path: root/libavcodec/h264_cavlc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-24 18:05:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-24 18:05:02 +0000
commit8ba436171f6afb4b5c4882104c8a9d26f18727e7 (patch)
treefc31080504d8b116ecde4faab695d9cac9150138 /libavcodec/h264_cavlc.c
parentf632c4549bb15b9a91647ffeafab3fdcc9f4e2de (diff)
downloadffmpeg-8ba436171f6afb4b5c4882104c8a9d26f18727e7.tar.gz
1 cpu cycle faster suffix_length calculation.
Originally committed as revision 21425 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_cavlc.c')
-rw-r--r--libavcodec/h264_cavlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c
index c0308d080b..c248137248 100644
--- a/libavcodec/h264_cavlc.c
+++ b/libavcodec/h264_cavlc.c
@@ -408,7 +408,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
if(trailing_ones<total_coeff) {
int mask, prefix;
- int suffix_length = total_coeff > 10 && trailing_ones < 3;
+ int suffix_length = total_coeff > 10 & trailing_ones < 3;
int bitsi= show_bits(gb, LEVEL_TAB_BITS);
int level_code= cavlc_level_tab[suffix_length][bitsi][0];