From eac95e85d90700c7a97485a5ae0cb4df68bf8598 Mon Sep 17 00:00:00 2001 From: Darby Johnston Date: Mon, 26 Aug 2024 15:34:11 -0700 Subject: [PATCH] build: Add new FFmpeg versions Signed-off-by: Darby Johnston --- src/cmake/modules/FindFFmpeg.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmake/modules/FindFFmpeg.cmake b/src/cmake/modules/FindFFmpeg.cmake index 3f034234ab..c49e9623f8 100644 --- a/src/cmake/modules/FindFFmpeg.cmake +++ b/src/cmake/modules/FindFFmpeg.cmake @@ -73,7 +73,11 @@ if (FFMPEG_INCLUDES) REGEX "^#define LIBAVCODEC_VERSION_MICRO .*$") string (REGEX MATCHALL "[0-9]+[.0-9]+" LIBAVCODEC_VERSION_MICRO "${TMP}") set (LIBAVCODEC_VERSION "${LIBAVCODEC_VERSION_MAJOR}.${LIBAVCODEC_VERSION_MINOR}.${LIBAVCODEC_VERSION_MICRO}") - if (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 60.3.100) + if (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 61.3.100) + set (FFMPEG_VERSION 7.0) + elseif (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 60.31.102) + set (FFMPEG_VERSION 6.1) + elseif (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 60.3.100) set (FFMPEG_VERSION 6.0) elseif (LIBAVCODEC_VERSION VERSION_GREATER_EQUAL 59.37.100) set (FFMPEG_VERSION 5.1)