Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
e4732ba9
Commit
e4732ba9
authored
Apr 10, 2009
by
Diego Biurrun
Browse files
Fix sigill on non-MMX2 CPUs.
Originally committed as revision 18410 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4f313925
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
libavcodec/motion-test.c
libavcodec/motion-test.c
+3
-1
No files found.
libavcodec/motion-test.c
View file @
e4732ba9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment