aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-10-09 21:14:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-10-09 21:14:16 +0000
commit7822e1c1ffaa054728075d5189345c8c3618daa1 (patch)
tree039fe41c6e80cedf24280295e77a078d98327285 /libavcodec/h264.c
parentef0090a9989062416aa734abffe4658e09b254a8 (diff)
downloadffmpeg-7822e1c1ffaa054728075d5189345c8c3618daa1.tar.gz
reverse remainder of the failed attempt to optimize *state=c->mps_state[s]
Originally committed as revision 6609 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 bbd179d797..210005a828 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7401,9 +7401,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 ) + 2;
+ h->cabac_state[i] = 2 * ( 63 - pre ) + 0;
else
- h->cabac_state[i] = 2 * ( pre - 64 ) + 3;
+ h->cabac_state[i] = 2 * ( pre - 64 ) + 1;
}
for(;;){