# Darwin
ifdef HAVE_DARWIN_OS
FFMPEGCONF += --arch=$(ARCH) --target-os=darwin
-ifneq ($(findstring $(ARCH),i386 x86_64),)
-FFMPEGCONF += --enable-memalign-hack
-endif
ifeq ($(ARCH),x86_64)
FFMPEGCONF += --cpu=core2
endif
# Linux
ifdef HAVE_LINUX
FFMPEGCONF += --target-os=linux --enable-pic
+
endif
# Windows
FFMPEGCONF += --enable-pthreads
endif
-# Disable mpegvideo-based hwaccel - known broken
-FFMPEGCONF += \
- $(foreach codec,h263 mpeg1 mpeg2 mpeg4 vc1 wmv3,\
- $(foreach api,dxva2 vaapi vdpau,\
- --disable-hwaccel=$(codec)_$(api)))
-
# Build
PKGS += ffmpeg
ifeq ($(call need_pkg,"libavcodec >= 54.25.0 libavformat >= 53.21.0 libswscale"),)