[FFmpeg-devel] [PATCH] videodsp_init: Restrict to SSE2.

Stephen Hutchinson qyot27 at gmail.com
Wed Oct 9 18:16:32 CEST 2013


Avoids SIGILL on non-SSE2 CPUs like the Pentium-III. Resolves
ticket #3017.
---
 libavcodec/x86/videodsp_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/videodsp_init.c b/libavcodec/x86/videodsp_init.c
index a709d03..b70b778 100644
--- a/libavcodec/x86/videodsp_init.c
+++ b/libavcodec/x86/videodsp_init.c
@@ -244,7 +244,7 @@ av_cold void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc)
     if (EXTERNAL_MMXEXT(cpu_flags)) {
         ctx->prefetch = ff_prefetch_mmxext;
     }
-    if (EXTERNAL_SSE(cpu_flags) && bpc <= 8) {
+    if (EXTERNAL_SSE2(cpu_flags) && bpc <= 8) {
         ctx->emulated_edge_mc = emulated_edge_mc_sse;
     }
 #endif /* HAVE_YASM */
-- 
1.8.1.2



More information about the ffmpeg-devel mailing list