From 94f382dcd2bb50bf8e3be950badb984f57839303 Mon Sep 17 00:00:00 2001 From: Almamu Date: Sun, 14 Jul 2024 03:57:03 +0200 Subject: [PATCH] fix: build on old ffmpeg versions --- src/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common.h b/src/common.h index 324d7e4..ae958c1 100644 --- a/src/common.h +++ b/src/common.h @@ -3,3 +3,7 @@ #include "WallpaperEngine/Core/Wallpapers/CWeb.h" #include "WallpaperEngine/Logging/CLog.h" +// TODO: FIND A BETTER PLACE TO DO THIS? OLD_API MIGHT EXIST BUT THIS DEFINE MIGHT NOT BE DEFINED... +#ifndef FF_API_FIFO_OLD_API +#define FF_API_FIFO_OLD_API (LIBAVUTIL_VERSION_MAJOR < 59) +#endif \ No newline at end of file