diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-10 19:42:51 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-10 19:42:51 +0000 |
commit | 003ebe100b9d9cd4ae32b16b38865714bfb6df44 (patch) | |
tree | a168a1a9e155f9f047080ea34b1d35547b9aeb6e /libavcodec/rangecoder.c | |
parent | eabb0ac38e3da2976ab250274fea2ae1e97da8c5 (diff) | |
download | ffmpeg-003ebe100b9d9cd4ae32b16b38865714bfb6df44.tar.gz |
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
Diffstat (limited to 'libavcodec/rangecoder.c')
-rw-r--r-- | libavcodec/rangecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |