Originally committed as revision 5139 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavcodec/rangecoder.c (1 of 1 file). Show all
Unified · Split
| @@ -110,7 +110,7 @@ void ff_build_rac_states(RangeCoder *c, int factor, int max_p){ · 109 unmodified lines | ||
| 110 | 110 | c->one_state[ i]= p8; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | − for(i=0; i<256; i++) | |
| 113 | + for(i=1; i<255; i++) | |
| 114 | 114 | c->zero_state[i]= 256-c->one_state[256-i]; |
| 115 | 115 | #if 0 |
| 116 | 116 | for(i=0; i<256; i++) |