changeset 3184:68d7896a08e4 libavcodec

fixing out of array access (only cosmetic, this should never have had a end user vissible effect)
author michael
date Fri, 10 Mar 2006 19:42:51 +0000
parents 8e00b10aeb0a
children 333e016c2c8a
files rangecoder.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rangecoder.c	Fri Mar 10 19:10:46 2006 +0000
+++ b/rangecoder.c	Fri Mar 10 19:42:51 2006 +0000
@@ -110,7 +110,7 @@
         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++)