From 003ebe100b9d9cd4ae32b16b38865714bfb6df44 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 10 Mar 2006 19:42:51 +0000 Subject: [PATCH] fixing out of array access (only cosmetic, this should never have had a end user vissible effect) Originally committed as revision 5139 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/rangecoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c index 8607b8f6d9..4266cf1b39 100644 --- a/libavcodec/rangecoder.c +++ b/libavcodec/rangecoder.c @@ -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++)