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

Diego Biurrun diego
Fri Apr 10 13:30:54 CEST 2009


On Thu, Apr 09, 2009 at 06:30:11PM +0200, Reimar D?ffinger wrote:
> On Thu, Apr 09, 2009 at 06:15:28PM +0200, Diego Biurrun wrote:
> > On Thu, Apr 09, 2009 at 05:43:17PM +0200, Diego Biurrun wrote:
> > > [...]
> > 
> > Next try using
> > 
> >   int flags_size = HAVE_MMX2 + HAVE_MMX;
> 
> flags_size = HAVE_MMX2 ? 2 : 1;
> seems more readable, unless you are considering the case of no MMX at
> all in which case you'd get a not-segfaulting but also useless binary...

Applied with your idea integrated.

Diego



More information about the ffmpeg-devel mailing list