git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9f9b7f
)
avcodec/x86/cavsdsp: Put MMX code under mmx check
author
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 5 Mar 2017 02:14:27 +0000
(
03:14
+0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Mon, 6 Mar 2017 15:47:17 +0000
(16:47 +0100)
Without this the FPU state becomes trashed and causes mysterious
fate failures with cpuflags=0
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/x86/cavsdsp.c
patch
|
blob
|
history
diff --git
a/libavcodec/x86/cavsdsp.c
b/libavcodec/x86/cavsdsp.c
index
4b20e65
..
e57d8be
100644
(file)
--- a/
libavcodec/x86/cavsdsp.c
+++ b/
libavcodec/x86/cavsdsp.c
@@
-565,7
+565,9
@@
av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c, AVCodecContext *avctx)
{
av_unused int cpu_flags = av_get_cpu_flags();
- cavsdsp_init_mmx(c, avctx);
+ if (X86_MMX(cpu_flags))
+ cavsdsp_init_mmx(c, avctx);
+
#if HAVE_AMD3DNOW_INLINE
if (INLINE_AMD3DNOW(cpu_flags))
cavsdsp_init_3dnow(c, avctx);