diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt index 96587dd53..f2443e9b8 100644 --- a/libobs/CMakeLists.txt +++ b/libobs/CMakeLists.txt @@ -8,6 +8,10 @@ find_package(Libavutil REQUIRED) include_directories(${Libavutil_INCLUDE_DIR}) add_definitions(${Libavutil_DEFINITIONS}) +find_package(Libavformat REQUIRED) +include_directories(${Libavformat_INCLUDE_DIR}) +add_definitions(${Libavformat_DEFINITIONS}) + add_definitions(-DLIBOBS_EXPORTS) add_definitions(-DPTW32_STATIC_LIB) diff --git a/libobs/media-io/audio-resampler-ffmpeg.c b/libobs/media-io/audio-resampler-ffmpeg.c index 06f8a9c7e..154cbd764 100644 --- a/libobs/media-io/audio-resampler-ffmpeg.c +++ b/libobs/media-io/audio-resampler-ffmpeg.c @@ -18,8 +18,8 @@ #include "../util/bmem.h" #include "audio-resampler.h" #include "audio-io.h" -#include -#include +#include +#include #include struct audio_resampler {