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

Ronald S. Bultje rsbultje at gmail.com
Wed Oct 9 18:18:13 CEST 2013


Hi,

On Wed, Oct 9, 2013 at 12:16 PM, Stephen Hutchinson <qyot27 at gmail.com>wrote:

> 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


Which instruction does it crash on (in gdb: 'disass' and 'info
all-registers')?

Ronald


More information about the ffmpeg-devel mailing list