[FFmpeg-devel] [PATCH] fix motion-test on non-MMX CPUs

Michael Niedermayer michaelni
Thu Apr 9 19:14:31 CEST 2009


On Thu, Apr 09, 2009 at 05:16:38PM +0200, Diego Biurrun wrote:
> On Thu, Apr 09, 2009 at 05:00:02PM +0200, Michael Niedermayer wrote:
> > On Thu, Apr 09, 2009 at 09:22:45AM +0200, Diego Biurrun wrote:
> > > Here is a patch to fix a sigill on CPUs without MMX2, like my trusty old
> > > K6-III, when running motion-test.
> > > 
> > > If somebody has a prettier idea, I'm all ears.
> > > 
> > > --- libavcodec/motion-test.c	(revision 18382)
> > > +++ libavcodec/motion-test.c	(working copy)
> > > @@ -127,7 +128,13 @@
> > >      AVCodecContext *ctx;
> > >      int c;
> > >      DSPContext cctx, mmxctx;
> > > +#if HAVE_MMX2
> > >      int flags[2] = { FF_MM_MMX, FF_MM_MMX2 };
> > > +    int flags_size = 2;
> > > +#else
> > > +    int flags[2] = { FF_MM_MMX };
> > > +    int flags_size = 1;
> > > +#endif
> > 
> > it seems int flags[2] does noz need to be changed
> 
> Did you mean "noW" or "noT" here?

The key that is closer to Z :)
i meant "not"


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090409/828748b9/attachment.pgp>



More information about the ffmpeg-devel mailing list