Skip to content

Commit f5a5479

Browse files
committed
Getting the ffmpeg selector to have the option of picking the "Master".
We are doing this so we can get openapv that has just been released. It also includes a number of changes to the API that are in the latest release. Signed-off-by: [email protected] <[email protected]>
1 parent 31d2564 commit f5a5479

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

cmake/defaults/cxx_defaults.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ ELSEIF(RV_FFMPEG STREQUAL 7)
104104
ON
105105
)
106106
ADD_COMPILE_DEFINITIONS(RV_FFMPEG_7)
107-
ELSEIF(RV_FFMPEG STREQUAL 7_2)
108-
SET(RV_FFMPEG_7_2
107+
ELSEIF(RV_FFMPEG STREQUAL MASTER)
108+
SET(RV_FFMPEG_MASTER
109109
ON
110110
)
111-
ADD_COMPILE_DEFINITIONS(RV_FFMPEG_7_2)
111+
ADD_COMPILE_DEFINITIONS(RV_FFMPEG_MASTER)
112112
ENDIF()

cmake/defaults/rv_options.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ SET_PROPERTY(
9191

9292
# Supported FFmpeg versions.
9393
SET(RV_FFMPEG_SUPPORTED_OPTIONS
94-
6 7 7_2
94+
6 7 MASTER
9595
)
9696
# Default option
9797
SET(_RV_FFMPEG

cmake/dependencies/ffmpeg.cmake

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ SET(_target
2323
"RV_DEPS_FFMPEG"
2424
)
2525

26-
IF(RV_FFMPEG_7_2)
26+
IF(RV_FFMPEG_MASTER)
2727
SET(_version
28-
"n7.2"
28+
"master"
2929
)
3030

3131
SET(_download_hash
32-
"a7a85ec05c9bc3aeefee12743899d8ab"
32+
""
3333
)
3434
ELSEIF(RV_FFMPEG_7)
3535
SET(_version
@@ -56,6 +56,14 @@ SET(_download_url
5656
"https://github.com/FFmpeg/FFmpeg/archive/refs/tags/${_version}.zip"
5757
)
5858

59+
IF(RV_FFMPEG_MASTER)
60+
SET(_download_url
61+
"https://github.com/FFmpeg/FFmpeg/archive/master.zip"
62+
)
63+
ENDIF()
64+
65+
66+
5967
SET(_base_dir
6068
${RV_DEPS_BASE_DIR}/${_target}
6169
)
@@ -87,7 +95,7 @@ ELSE()
8795
)
8896
ENDIF()
8997

90-
IF(RV_FFMPEG_7_2)
98+
IF(RV_FFMPEG_MASTER)
9199
IF(RV_TARGET_DARWIN)
92100
SET(_ffmpeg_avutil_lib_name
93101
${CMAKE_SHARED_LIBRARY_PREFIX}avutil.60${CMAKE_SHARED_LIBRARY_SUFFIX}
@@ -447,9 +455,9 @@ EXTERNALPROJECT_ADD(
447455
DOWNLOAD_DIR ${RV_DEPS_DOWNLOAD_DIR}
448456
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
449457
INSTALL_DIR ${_install_dir}
450-
GIT_REPOSITORY https://github.com/ffmpeg/ffmpeg.git
451-
#URL ${_download_url}
452-
#URL_MD5 ${_download_hash}
458+
#GIT_REPOSITORY https://github.com/ffmpeg/ffmpeg.git
459+
URL ${_download_url}
460+
URL_MD5 ${_download_hash}
453461
SOURCE_DIR ${RV_DEPS_BASE_DIR}/${_target}/src
454462
PATCH_COMMAND ${RV_FFMPEG_PATCH_COMMAND_STEP}
455463
CONFIGURE_COMMAND

0 commit comments

Comments
 (0)