Made ffmpegsource no longer write caches.

Originally committed to SVN as r1611.
This commit is contained in:
Rodrigo Braz Monteiro 2007-10-18 20:19:06 +00:00
parent c1633cfaf0
commit 381d4ad9d5
1 changed files with 4 additions and 1 deletions

View File

@ -259,7 +259,10 @@ PClip AvisynthVideoProvider::OpenVideo(wxString _filename, bool mpeg2dec3_priori
ffsource = false; ffsource = false;
if (env->FunctionExists("ffmpegsource")) { if (env->FunctionExists("ffmpegsource")) {
AVSTRACE(_T("AvisynthVideoProvider::OpenVideo: Invoking FFMpegSource")); AVSTRACE(_T("AvisynthVideoProvider::OpenVideo: Invoking FFMpegSource"));
script = env->Invoke("ffmpegsource", videoFilename); const char *argnames[2] = { "source", "vcache" };
AVSValue args[2] = { videoFilename, false };
script = env->Invoke("ffmpegsource", AVSValue(args,2), argnames);
//script = env->Invoke("ffmpegsource", videoFilename);
AVSTRACE(_T("AvisynthVideoProvider::OpenVideo: Successfully opened file with FFMpegSource")); AVSTRACE(_T("AvisynthVideoProvider::OpenVideo: Successfully opened file with FFMpegSource"));
ffsource = true; ffsource = true;
decoderName = _T("FFmpegSource"); decoderName = _T("FFmpegSource");