diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c54e30e..bf239b96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) ####################################################################### diff --git a/ng/encoding.hpp b/ng/encoding.hpp index 9ea2ffb5..8fa6977f 100644 --- a/ng/encoding.hpp +++ b/ng/encoding.hpp @@ -3,6 +3,9 @@ #ifdef FFMPEG +#include +using namespace std; + extern "C" { #include #include