summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@via.ecp.fr>2004-03-26 19:35:53 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-03-26 19:35:53 +0000
commite5017ab8701c7ac3edc74fd1c1ae45b414e8eda1 (patch)
treed7c342fc57697214da16dd9b7af0c08240235f33 /libavcodec/cabac.c
parent6fb316d5634252e259b3c95dcc40de533173cb1c (diff)
downloadffmpeg-e5017ab8701c7ac3edc74fd1c1ae45b414e8eda1.tar.gz
h264 - progressive I frame CABAC support patch by (Laurent Aimar <fenrir at via dot ecp dot fr>)
Originally committed as revision 2932 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r--libavcodec/cabac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index 27e63045b7..0e3e14f56e 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -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{