History

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

Michael Niedermayer committed 20 years ago

Commit 003ebe11 parent eabb0ac1 file · +1 −1Browse files

Unified · Split

libavcodec/rangecoder.c+1−1
@@ -110,7 +110,7 @@ void ff_build_rac_states(RangeCoder *c, int factor, int max_p){ · 109 unmodified lines
110110 c->one_state[ i]= p8;
111111 }
112112
113− for(i=0; i<256; i++)
113+ for(i=1; i<255; i++)
114114 c->zero_state[i]= 256-c->one_state[256-i];
115115 #if 0
116116 for(i=0; i<256; i++)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t