[FFmpeg-devel] [PATCH] Fix compilation of dct-test, fft-test and motion-test

Zuxy Meng zuxy.meng
Fri Jul 20 04:04:49 CEST 2007


Hi,

2007/7/19, Michael Niedermayer <michaelni at gmx.at>:
> Hi
>
> On Thu, Jul 19, 2007 at 10:59:05PM +0800, Zuxy Meng wrote:
> > Hi,
> >
> > 2007/7/19, Michael Niedermayer <michaelni at gmx.at>:
> > > On Wed, Jul 18, 2007 at 09:19:54PM -0400, Marc Hoffman wrote:
> > > > On 7/18/07, Michael Niedermayer <michaelni at gmx.at> wrote:
> > > > >
> > > > > Hi
> > > > >
> > > > > On Wed, Jul 18, 2007 at 09:53:49PM +0200, Panagiotis Issaris wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Attached patches implement two different ways to fix the compilation of
> > > > > > dct-test, fft-test and motion-test. I personally prefer the smallest
> > > > > patch.
> > > > >
> > > > > correct solution is to get rid of HAVE_AV_CONFIG_H failing that iam ok
> > > > > with
> > > > > #undef random
> > > >
> > > >
> > > > Interestingly this #undef random is how I worked around this as well.
> > > > Michael the way your suggesting is fairly obscure.  Thanks for pointing it
> > > > out.
> > >
> > > after thinking about it again , #undef random is really ok
> >
> > Can rand() be used here? Not all platforms support random().
>
> yes, after you show a failure of random() where rand() succeeds

e.g. MinGW32

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6




More information about the ffmpeg-devel mailing list