Commit e1ea592f authored by diego's avatar diego

Fix sigill on non-MMX2 CPUs.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18410 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1f09f71f
......@@ -29,6 +29,7 @@
#include <sys/time.h>
#include <unistd.h>
#include "config.h"
#include "dsputil.h"
#include "libavutil/lfg.h"
......@@ -128,6 +129,7 @@ int main(int argc, char **argv)
int c;
DSPContext cctx, mmxctx;
int flags[2] = { FF_MM_MMX, FF_MM_MMX2 };
int flags_size = HAVE_MMX2 ? 2 : 1;
for(;;) {
c = getopt(argc, argv, "h");
......@@ -145,7 +147,7 @@ int main(int argc, char **argv)
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++) {
int x;
ctx->dsp_mask = FF_MM_FORCE | flags[c];
dsputil_init(&mmxctx, ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment