summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-10-08 11:24:37 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-10-08 11:24:37 +0000
commit99ce10873df41ba650e51c8069280a32a1f57961 (patch)
tree9aa4be055ebd404e039e0a1fc61b1758f52143b4 /libavcodec/h264.c
parente16c407a817faaa6e5bed445d602f9240f5319fb (diff)
5% faster get_cabac()
Originally committed as revision 6586 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 5afda47f64..060d38699e 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7399,9 +7399,9 @@ static int decode_slice(H264Context *h){
pre = clip( ((cabac_context_init_PB[h->cabac_init_idc][i][0] * s->qscale) >>4 ) + cabac_context_init_PB[h->cabac_init_idc][i][1], 1, 126 );
if( pre <= 63 )
- h->cabac_state[i] = 2 * ( 63 - pre ) + 0;
+ h->cabac_state[i] = 2 * ( 63 - pre ) + 2;
else
- h->cabac_state[i] = 2 * ( pre - 64 ) + 1;
+ h->cabac_state[i] = 2 * ( pre - 64 ) + 3;
}
for(;;){