Commit 89653ea7 authored by Michael Niedermayer's avatar Michael Niedermayer

cabac: fix cabac encoder

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 824f98f4
...@@ -150,10 +150,14 @@ void ff_init_cabac_states(CABACContext *c){ ...@@ -150,10 +150,14 @@ void ff_init_cabac_states(CABACContext *c){
ff_h264_mps_state[2*i+1]= 2*mps_state[i]+1; ff_h264_mps_state[2*i+1]= 2*mps_state[i]+1;
if( i ){ if( i ){
ff_h264_lps_state[2*i+0]=
ff_h264_mlps_state[128-2*i-1]= 2*lps_state[i]+0; ff_h264_mlps_state[128-2*i-1]= 2*lps_state[i]+0;
ff_h264_lps_state[2*i+1]=
ff_h264_mlps_state[128-2*i-2]= 2*lps_state[i]+1; ff_h264_mlps_state[128-2*i-2]= 2*lps_state[i]+1;
}else{ }else{
ff_h264_lps_state[2*i+0]=
ff_h264_mlps_state[128-2*i-1]= 1; ff_h264_mlps_state[128-2*i-1]= 1;
ff_h264_lps_state[2*i+1]=
ff_h264_mlps_state[128-2*i-2]= 0; ff_h264_mlps_state[128-2*i-2]= 0;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment