[FFmpeg-devel] [PATCH] Fix warning in av_rescale_rnd (in libavutil/mathematics.c)

Carl Eugen Hoyos cehoyos
Sat Jul 3 19:09:21 CEST 2010


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > +++ libavutil/mathematics.c	(working copy)
> > @@ -78,7 +78,7 @@
> >      int64_t r=0;
> >      assert(c > 0);
> >      assert(b >=0);
> > -    assert(rnd >=0 && rnd<=5 && rnd!=4);
> > +    assert((unsigned)rnd<=5 && rnd!=4);
> 
> ok

Patch applied.

Carl Eugen




More information about the ffmpeg-devel mailing list