Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, never use "using namespace ..." in any header file.


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