Skip to content

Commit

Permalink
configure.ac: disable CUDA-accelerated FFmpeg convs on macOS
Browse files Browse the repository at this point in the history
Support for CUDA on macOS is just legacy and the stuff won't compile
(C++ interferes with lavc headers with the old compiler - tested with
CUDA 10.2 on macOS 10.13, which should be the last compatible).
  • Loading branch information
MartinPulec committed May 2, 2024
1 parent aeaef36 commit 4581c7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,8 @@ if test $libavcodec_req != no && test $found_libavcodec = yes &&
then
LIBAVCODEC_COMMON="src/libavcodec/lavc_common.o src/libavcodec/utils.o"
LIBAVCODEC_VIDEO="src/libavcodec/lavc_video.o src/libavcodec/from_lavc_vid_conv.o src/libavcodec/to_lavc_vid_conv.o"
if test "$lavc_cuda_conv_req" != no && test "$FOUND_CUDA" = yes; then
if test "$lavc_cuda_conv_req" != no && test "$FOUND_CUDA" = yes &&
system != MacOSX; then
AC_DEFINE([HAVE_LAVC_CUDA_CONV], [1], [Build with lavc CUDA conversions])
to_lavc_cuda_obj=src/libavcodec/to_lavc_vid_conv_cuda.o
LIBAVCODEC_VIDEO="$LIBAVCODEC_VIDEO $to_lavc_cuda_obj src/libavcodec/from_lavc_vid_conv_cuda.o"
Expand Down

0 comments on commit 4581c7f

Please sign in to comment.