h264 - progressive I frame CABAC support patch by (Laurent Aimar <fenrir at via dot...
[ffmpeg.git] / libavcodec / cabac.c
index 27e6304..0e3e14f 100644 (file)
@@ -113,7 +113,7 @@ void ff_init_cabac_states(CABACContext *c, uint8_t const (*lps_range)[4],
         c->mps_state[2*i+0]= 2*mps_state[i];
         c->mps_state[2*i+1]= 2*mps_state[i]+1;
 
-        if(lps_state[i]){
+        if( i ){
             c->lps_state[2*i+0]= 2*lps_state[i];
             c->lps_state[2*i+1]= 2*lps_state[i]+1;
         }else{