fixing out of array access (only cosmetic, this should never have had a end user...
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Mar 2006 19:42:51 +0000 (19:42 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Mar 2006 19:42:51 +0000 (19:42 +0000)
Originally committed as revision 5139 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/rangecoder.c

index 8607b8f..4266cf1 100644 (file)
@@ -110,7 +110,7 @@ void ff_build_rac_states(RangeCoder *c, int factor, int max_p){
         c->one_state[    i]=     p8;
     }
 
-    for(i=0; i<256; i++)
+    for(i=1; i<255; i++)
         c->zero_state[i]= 256-c->one_state[256-i];
 #if 0
     for(i=0; i<256; i++)