Fixed project and other stuff for ffmpegsource support.

Originally committed to SVN as r2341.
This commit is contained in:
Rodrigo Braz Monteiro 2008-09-10 22:01:35 +00:00
parent 0026ba38ec
commit df3a25129e
6 changed files with 19 additions and 4 deletions

View File

@ -123,6 +123,13 @@
#pragma comment(lib, "opengl32.lib")
////////////////
// FFMpegSource
#ifdef WITH_FFMPEGSOURCE
#pragma comment(lib, "ffmpegsource2.lib")
#endif
//////////////
// DirectShow
#ifdef WITH_DIRECTSHOW

View File

@ -38,7 +38,7 @@
///////////
// Headers
#include "video_provider_ffmpegsource.h"
#include <ffms.h>
#include "../FFmpegSource2/ffms.h"
#include "video_context.h"
#include "options.h"
@ -230,7 +230,7 @@ const AegiVideoFrame FFmpegSourceVideoProvider::GetFrame(int _n, int FormatType)
// choose output format
if (FormatType & FORMAT_RGB32) {
DstFormat = FFMS_PIX_FMT_RGB32; // FIXME: should be RGB32
DstFormat = FFMS_PIX_FMT_RGB32;
DstFrame.format = FORMAT_RGB32;
} else if (FormatType & FORMAT_RGB24) {
DstFormat = FFMS_PIX_FMT_RGB24;

View File

@ -42,7 +42,7 @@
#include "dialog_progress.h"
#include "vfr.h"
#include <vector>
#include <ffms.h>
#include "../FFmpegSource2/ffms.h"

View File

@ -199,7 +199,7 @@
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
/>
<Tool

View File

@ -1644,6 +1644,14 @@
RelativePath="..\..\aegisub\video_provider_dummy.h"
>
</File>
<File
RelativePath="..\..\aegisub\video_provider_ffmpegsource.cpp"
>
</File>
<File
RelativePath="..\..\aegisub\video_provider_ffmpegsource.h"
>
</File>
<File
RelativePath="..\..\aegisub\video_provider_lavc.cpp"
>

BIN
lib/ffmpegsource2.lib Normal file

Binary file not shown.