Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shiona
Created September 13, 2020 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shiona/7adbbab4ecb64e4873624b661c87c4fa to your computer and use it in GitHub Desktop.
Save shiona/7adbbab4ecb64e4873624b661c87c4fa to your computer and use it in GitHub Desktop.
Patch to circumvent all version checks for ffmpeg. Allows compilation, but is likely to cause problems further along the way.
diff --git a/src/lib/ffmpeg-4.0/avcodec.pas b/src/lib/ffmpeg-4.0/avcodec.pas
index cef8b16e..f14cc3b6 100644
--- a/src/lib/ffmpeg-4.0/avcodec.pas
+++ b/src/lib/ffmpeg-4.0/avcodec.pas
@@ -84,7 +84,7 @@ const
(* Supported version by this header *)
LIBAVCODEC_MAX_VERSION_MAJOR = 58;
- LIBAVCODEC_MAX_VERSION_MINOR = 54;
+ LIBAVCODEC_MAX_VERSION_MINOR = 99;
LIBAVCODEC_MAX_VERSION_RELEASE = 100;
LIBAVCODEC_MAX_VERSION = (LIBAVCODEC_MAX_VERSION_MAJOR * VERSION_MAJOR) +
(LIBAVCODEC_MAX_VERSION_MINOR * VERSION_MINOR) +
diff --git a/src/lib/ffmpeg-4.0/avformat.pas b/src/lib/ffmpeg-4.0/avformat.pas
index b6609e1f..0b5315e1 100644
--- a/src/lib/ffmpeg-4.0/avformat.pas
+++ b/src/lib/ffmpeg-4.0/avformat.pas
@@ -63,7 +63,7 @@ const
*)
(* Max. supported version by this header *)
LIBAVFORMAT_MAX_VERSION_MAJOR = 58;
- LIBAVFORMAT_MAX_VERSION_MINOR = 29;
+ LIBAVFORMAT_MAX_VERSION_MINOR = 99;
LIBAVFORMAT_MAX_VERSION_RELEASE = 100;
LIBAVFORMAT_MAX_VERSION = (LIBAVFORMAT_MAX_VERSION_MAJOR * VERSION_MAJOR) +
(LIBAVFORMAT_MAX_VERSION_MINOR * VERSION_MINOR) +
diff --git a/src/lib/ffmpeg-4.0/avutil.pas b/src/lib/ffmpeg-4.0/avutil.pas
index c3b17d29..3f3cc567 100644
--- a/src/lib/ffmpeg-4.0/avutil.pas
+++ b/src/lib/ffmpeg-4.0/avutil.pas
@@ -58,7 +58,7 @@ uses
const
(* Max. supported version by this header *)
LIBAVUTIL_MAX_VERSION_MAJOR = 56;
- LIBAVUTIL_MAX_VERSION_MINOR = 31;
+ LIBAVUTIL_MAX_VERSION_MINOR = 99;
LIBAVUTIL_MAX_VERSION_RELEASE = 100;
LIBAVUTIL_MAX_VERSION = (LIBAVUTIL_MAX_VERSION_MAJOR * VERSION_MAJOR) +
(LIBAVUTIL_MAX_VERSION_MINOR * VERSION_MINOR) +
diff --git a/src/lib/ffmpeg-4.0/swresample.pas b/src/lib/ffmpeg-4.0/swresample.pas
index 87d30a9f..d9985ec6 100644
--- a/src/lib/ffmpeg-4.0/swresample.pas
+++ b/src/lib/ffmpeg-4.0/swresample.pas
@@ -83,7 +83,7 @@ const
(* Supported version by this header *)
LIBSWRESAMPLE_MAX_VERSION_MAJOR = 3;
- LIBSWRESAMPLE_MAX_VERSION_MINOR = 5;
+ LIBSWRESAMPLE_MAX_VERSION_MINOR = 99;
LIBSWRESAMPLE_MAX_VERSION_RELEASE = 100;
LIBSWRESAMPLE_MAX_VERSION = (LIBSWRESAMPLE_MAX_VERSION_MAJOR * VERSION_MAJOR) +
(LIBSWRESAMPLE_MAX_VERSION_MINOR * VERSION_MINOR) +
diff --git a/src/lib/ffmpeg-4.0/swscale.pas b/src/lib/ffmpeg-4.0/swscale.pas
index 55c74c6c..569d86fe 100644
--- a/src/lib/ffmpeg-4.0/swscale.pas
+++ b/src/lib/ffmpeg-4.0/swscale.pas
@@ -77,7 +77,7 @@ const
(* Max. supported version by this header *)
LIBSWSCALE_MAX_VERSION_MAJOR = 5;
- LIBSWSCALE_MAX_VERSION_MINOR = 5;
+ LIBSWSCALE_MAX_VERSION_MINOR = 99;
LIBSWSCALE_MAX_VERSION_RELEASE = 100;
LIBSWSCALE_MAX_VERSION = (LIBSWSCALE_MAX_VERSION_MAJOR * VERSION_MAJOR) +
(LIBSWSCALE_MAX_VERSION_MINOR * VERSION_MINOR) +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment