[FFmpeg-cvslog] avfilter/vf_gblur: add missing preprocessor check
James Almer
git at videolan.org
Wed Jun 12 16:55:40 EEST 2019
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Jun 12 10:54:59 2019 -0300| [b8f1542dcbadd25b027328acf4f312e1780499a5] | committer: James Almer
avfilter/vf_gblur: add missing preprocessor check
Fixes compilation on x86_32
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b8f1542dcbadd25b027328acf4f312e1780499a5
---
libavfilter/x86/vf_gblur_init.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavfilter/x86/vf_gblur_init.c b/libavfilter/x86/vf_gblur_init.c
index b068edc598..e63e59fe23 100644
--- a/libavfilter/x86/vf_gblur_init.c
+++ b/libavfilter/x86/vf_gblur_init.c
@@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/x86/cpu.h"
@@ -27,10 +29,12 @@ void ff_horiz_slice_avx2(float *ptr, int width, int height, int steps, float nu,
av_cold void ff_gblur_init_x86(GBlurContext *s)
{
+#if ARCH_X86_64
int cpu_flags = av_get_cpu_flags();
if (EXTERNAL_SSE4(cpu_flags))
s->horiz_slice = ff_horiz_slice_sse4;
if (EXTERNAL_AVX2(cpu_flags))
s->horiz_slice = ff_horiz_slice_avx2;
+#endif
}
More information about the ffmpeg-cvslog
mailing list