Skip to content

Commit

Permalink
link FFMPEG and include stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-parsons committed Jan 5, 2025
1 parent 63cb566 commit 8737bff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

#######################################################################
Expand Down
3 changes: 3 additions & 0 deletions ng/encoding.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#ifdef FFMPEG

#include <mystdlib.h>
using namespace std;

extern "C" {
#include <libavutil/avassert.h>
#include <libavcodec/avcodec.h>
Expand Down

0 comments on commit 8737bff

Please sign in to comment.