link FFMPEG and include stdlib

required for building with gcc-14

applies debian patches:
include_stdlib.patch
ffmpeg_link_libraries.patch

d7ca1c564d/debian/patches/include_stdlib.patch
d7ca1c564d/debian/patches/ffmpeg_link_libraries.patch

Fixes: #192
This commit is contained in:
Drew Parsons 2025-01-05 12:04:03 +01:00
parent 63cb566b8d
commit 8737bff2bf
2 changed files with 6 additions and 0 deletions

View File

@ -439,6 +439,9 @@ if (USE_MPEG)
find_package(FFMPEG REQUIRED)
add_definitions(-DFFMPEG -D__STDC_CONSTANT_MACROS)
include_directories(${FFMPEG_INCLUDE_DIR})
if(USE_GUI)
target_link_libraries(nggui INTERFACE ${FFMPEG_LIBRARIES})
endif(USE_GUI)
endif (USE_MPEG)
#######################################################################

View File

@ -3,6 +3,9 @@
#ifdef FFMPEG
#include <mystdlib.h>
using namespace std;
extern "C" {
#include <libavutil/avassert.h>
#include <libavcodec/avcodec.h>