From 381d4ad9d5b61da165a80add4f0d42959a7be1e0 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Thu, 18 Oct 2007 20:19:06 +0000 Subject: [PATCH] Made ffmpegsource no longer write caches. Originally committed to SVN as r1611. --- aegisub/video_provider_avs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aegisub/video_provider_avs.cpp b/aegisub/video_provider_avs.cpp index 96d33d21b..0421f788b 100644 --- a/aegisub/video_provider_avs.cpp +++ b/aegisub/video_provider_avs.cpp @@ -259,7 +259,10 @@ PClip AvisynthVideoProvider::OpenVideo(wxString _filename, bool mpeg2dec3_priori ffsource = false; if (env->FunctionExists("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")); ffsource = true; decoderName = _T("FFmpegSource");