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

Michael Niedermayer michaelni
Thu Apr 9 19:17:45 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:
[...]
> > > @@ -145,7 +152,7 @@
> > >      ctx = avcodec_alloc_context();
> > >      ctx->dsp_mask = FF_MM_FORCE;
> > >      dsputil_init(&cctx, ctx);
> > > -    for (c = 0; c < 1; c++) {
> > > +    for (c = 0; c < flags_size; c++) {
> > 
> > hmm, this changes it from 1 to 2
> 
> This was the intention, what am I missing?
> 
> flags[0] is MMX, flags[1] is MMX2..

i thought this is a fix for non MMX2 but the value was
1 and for non mmx2 its still 1
while for mmx2 it becomes 2
that looked odd ...


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- 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/fcf01478/attachment.pgp>



More information about the ffmpeg-devel mailing list