You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avfilter/x86/vf_colordetect: fix use of AVX512 instruction in AVX2 function on non Unix64 targets
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -25,15 +25,15 @@
|
||||
SECTION .text
|
||||
|
||||
%macro detect_range_fn 1 ; suffix
|
||||
cglobal detect_range%1, 6, 7, 5, data, stride, width, height, mpeg_min, mpeg_max, x
|
||||
cglobal detect_range%1, 4, 7, 5, data, stride, width, height, mpeg_min, mpeg_max, x
|
||||
%if UNIX64 && notcpuflag(avx512)
|
||||
movd xm0, mpeg_mind
|
||||
movd xm1, mpeg_maxd
|
||||
vpbroadcast%1 m0, xm0
|
||||
vpbroadcast%1 m1, xm1
|
||||
%else
|
||||
vpbroadcast%1 m0, mpeg_mind
|
||||
vpbroadcast%1 m1, mpeg_maxd
|
||||
vpbroadcast%1 m0, mpeg_minm
|
||||
vpbroadcast%1 m1, mpeg_maxm
|
||||
%endif
|
||||
add dataq, widthq
|
||||
neg widthq
|
||||
|
Reference in New Issue
Block a user