Skip to content

Commit bcc172e

Browse files
authored
Fix build for ffmpeg8 + CUDA (#917)
1 parent e6904a6 commit bcc172e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/libspdl/cuda/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,13 @@ function(add_libspdl ffmpeg_version)
9595

9696
endfunction()
9797

98-
set(ffmpeg_versions 4 5 6 7)
98+
set(ffmpeg_versions 8 7 6 5 4)
9999
if (SPDL_USE_FFMPEG_VERSION IN_LIST ffmpeg_versions)
100100
add_libspdl("${SPDL_USE_FFMPEG_VERSION}")
101101
else()
102-
add_libspdl(4)
103-
add_libspdl(5)
104-
add_libspdl(6)
102+
add_libspdl(8)
105103
add_libspdl(7)
104+
add_libspdl(6)
105+
add_libspdl(5)
106+
add_libspdl(4)
106107
endif()

src/spdl/io/lib/cuda/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ function(add_spdl_cuda_extension ffmpeg_version)
7171
endif()
7272
endfunction()
7373

74-
set(ffmpeg_versions 4 5 6 7)
74+
set(ffmpeg_versions 8 7 6 5 4)
7575
if (SPDL_USE_FFMPEG_VERSION IN_LIST ffmpeg_versions)
7676
add_spdl_cuda_extension("${SPDL_USE_FFMPEG_VERSION}")
7777
else()
78-
add_spdl_cuda_extension(4)
79-
add_spdl_cuda_extension(5)
80-
add_spdl_cuda_extension(6)
78+
add_spdl_cuda_extension(8)
8179
add_spdl_cuda_extension(7)
80+
add_spdl_cuda_extension(6)
81+
add_spdl_cuda_extension(5)
82+
add_spdl_cuda_extension(4)
8283
endif()

0 commit comments

Comments
 (0)