avisynth: Remove option to allow ancient versions

- This refers to AviSynth < 2.5.6, which is from before 2005
- With the current setup (using GetAVSLinkage, these versions wouldn't
  work anyway)
- The latest AviSynthPlus is bundled with the installer anyway
This commit is contained in:
arch1t3cht 2022-07-05 02:01:35 +02:00
parent 635503affe
commit e644227e95
5 changed files with 3 additions and 12 deletions

View File

@ -63,11 +63,7 @@ AviSynthWrapper::AviSynthWrapper() {
if (!CreateScriptEnv)
throw AvisynthError("Failed to get address of CreateScriptEnv from avisynth.dll");
// Require Avisynth 2.5.6+?
if (OPT_GET("Provider/Avisynth/Allow Ancient")->GetBool())
env = CreateScriptEnv(AVISYNTH_INTERFACE_VERSION-1);
else
env = CreateScriptEnv(AVISYNTH_INTERFACE_VERSION);
env = CreateScriptEnv(AVISYNTH_INTERFACE_VERSION);
if (!env)
throw AvisynthError("Failed to create a new avisynth script environment. Avisynth is too old?");

View File

@ -335,8 +335,7 @@
}
},
"Avisynth" : {
"Allow Ancient" : false,
"Memory Max" : 64
"Memory Max" : 128
},
"FFmpegSource" : {
"Cache" : {

View File

@ -335,8 +335,7 @@
}
},
"Avisynth" : {
"Allow Ancient" : false,
"Memory Max" : 64
"Memory Max" : 128
},
"FFmpegSource" : {
"Cache" : {

View File

@ -436,8 +436,6 @@ void Advanced_Video(wxTreebook *book, Preferences *parent) {
#ifdef WITH_AVISYNTH
auto avisynth = p->PageSizer("Avisynth");
p->OptionAdd(avisynth, _("Allow pre-2.56a Avisynth"), "Provider/Avisynth/Allow Ancient");
p->CellSkip(avisynth);
p->OptionAdd(avisynth, _("Avisynth memory limit"), "Provider/Avisynth/Memory Max");
#endif

View File

@ -53,7 +53,6 @@ Project::Project(agi::Context *c) : context(c) {
OPT_SUB("Audio/Cache/Type", &Project::ReloadAudio, this);
OPT_SUB("Audio/Provider", &Project::ReloadAudio, this);
OPT_SUB("Provider/Audio/FFmpegSource/Decode Error Handling", &Project::ReloadAudio, this);
OPT_SUB("Provider/Avisynth/Allow Ancient", &Project::ReloadVideo, this);
OPT_SUB("Provider/Avisynth/Memory Max", &Project::ReloadVideo, this);
OPT_SUB("Provider/Video/FFmpegSource/Decoding Threads", &Project::ReloadVideo, this);
OPT_SUB("Provider/Video/FFmpegSource/Unsafe Seeking", &Project::ReloadVideo, this);