diff options
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++) |