diff --git a/aegisub/audio_provider_lavc.cpp b/aegisub/audio_provider_lavc.cpp index 287c74a0f..6ee132f26 100644 --- a/aegisub/audio_provider_lavc.cpp +++ b/aegisub/audio_provider_lavc.cpp @@ -49,8 +49,10 @@ * - done in posix/defines.h */ +extern "C" { #include #include +} #include "mkv_wrap.h" #include "lavc_file.h" #include "audio_provider.h" diff --git a/aegisub/video_provider_lavc.cpp b/aegisub/video_provider_lavc.cpp index b7ab9a813..5a5bcec45 100644 --- a/aegisub/video_provider_lavc.cpp +++ b/aegisub/video_provider_lavc.cpp @@ -39,8 +39,10 @@ #ifdef WIN32 #define EMULATE_INTTYPES #endif +extern "C" { #include #include +} #include #include #include @@ -55,7 +57,7 @@ ///////////////////// // Link to libraries #if __VISUALC__ >= 1200 -#pragma comment(lib, "swscale-0.lib") +//#pragma comment(lib, "swscale-0.lib") #pragma comment(lib, "avcodec-51.lib") #pragma comment(lib, "avformat-51.lib") #pragma comment(lib, "avutil-49.lib") @@ -238,7 +240,7 @@ void LAVCVideoProvider::Close() { buffer2Size = 0; // Clean frame - if (frame) av_free(frame); + if (frame) av_free((void*)frame); frame = NULL; // Close codec context