Commit cacd01db authored by Jean-Paul Saman's avatar Jean-Paul Saman

Enable use of MMXEXT if available in modules/codec/ffmpeg/scale.c

parent d4ed9e11
...@@ -115,6 +115,7 @@ int E_(OpenScaler)( vlc_object_t *p_this ) ...@@ -115,6 +115,7 @@ int E_(OpenScaler)( vlc_object_t *p_this )
} }
swscale_fast_memcpy = p_filter->p_libvlc->pf_memcpy; swscale_fast_memcpy = p_filter->p_libvlc->pf_memcpy;
/* Set CPU capabilities */ /* Set CPU capabilities */
i_cpu = vlc_CPU(); i_cpu = vlc_CPU();
p_sys->i_cpu_mask = 0; p_sys->i_cpu_mask = 0;
...@@ -122,7 +123,7 @@ int E_(OpenScaler)( vlc_object_t *p_this ) ...@@ -122,7 +123,7 @@ int E_(OpenScaler)( vlc_object_t *p_this )
{ {
p_sys->i_cpu_mask |= SWS_CPU_CAPS_MMX; p_sys->i_cpu_mask |= SWS_CPU_CAPS_MMX;
} }
#if 0 #if (LIBSWSCALE_VERSION_INT >= ((0<<16)+(5<<8)+0))
if( i_cpu & CPU_CAPABILITY_MMXEXT ) if( i_cpu & CPU_CAPABILITY_MMXEXT )
{ {
p_sys->i_cpu_mask |= SWS_CPU_CAPS_MMX2; p_sys->i_cpu_mask |= SWS_CPU_CAPS_MMX2;
......
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