From b773706f6dc96c7eed33f523db10d6987e28f994 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Tue, 7 Aug 2007 22:10:44 +0000 Subject: [PATCH] Some fixes for ffmpeg linking (I have no idea how it worked before) Originally committed to SVN as r1473. --- aegisub/audio_provider_lavc.cpp | 2 ++ aegisub/video_provider_lavc.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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