[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec rangecoder.c,1.5,1.6

Michael Niedermayer CVS michael
Fri Mar 10 20:42:54 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv8465

Modified Files:
	rangecoder.c 
Log Message:
fixing out of array access (only cosmetic, this should never have had a end user vissible effect)


Index: rangecoder.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/rangecoder.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- rangecoder.c	12 Jan 2006 22:43:16 -0000	1.5
+++ rangecoder.c	10 Mar 2006 19:42:51 -0000	1.6
@@ -110,7 +110,7 @@
         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++)





More information about the ffmpeg-cvslog mailing list