[Ffmpeg-devel] [PATCH] off-by-one errors in rangecoder.c and truemotion1.c
Michael Niedermayer
michaelni
Fri Mar 10 20:38:47 CET 2006
Hi
On Wed, Mar 08, 2006 at 10:33:26PM +0100, Reimar D?ffinger wrote:
[...]
> Index: libavcodec/rangecoder.c
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/rangecoder.c,v
> retrieving revision 1.5
> diff -u -r1.5 rangecoder.c
> --- libavcodec/rangecoder.c 12 Jan 2006 22:43:16 -0000 1.5
> +++ libavcodec/rangecoder.c 8 Mar 2006 21:33:07 -0000
> @@ -111,7 +111,7 @@
> }
>
> for(i=0; i<256; i++)
> - c->zero_state[i]= 256-c->one_state[256-i];
> + c->zero_state[i]= 255-c->one_state[255-i];
rejected
yes, the regression tests are you friend and will tell you why maybe
[...]
--
Michael
More information about the ffmpeg-devel
mailing list