diff --git a/src/avisynth.cpp b/src/avisynth.cpp index 98147d0..5fa750b 100644 --- a/src/avisynth.cpp +++ b/src/avisynth.cpp @@ -448,5 +448,5 @@ extern "C" AVS_EXPORT const char *__stdcall AvisynthPluginInit3(IScriptEnvironme Env->AddFunction("BSSetDebugOutput", "b[enable]", BSSetDebugOutput, nullptr); Env->AddFunction("BSSetFFmpegLogLevel", "i[level]", BSSetFFmpegLogLevel, nullptr); - return "Best Source (BS)"; + return "Best Source 2"; } diff --git a/src/vapoursynth.cpp b/src/vapoursynth.cpp index 4d336a7..bfa6cfd 100644 --- a/src/vapoursynth.cpp +++ b/src/vapoursynth.cpp @@ -413,11 +413,11 @@ static void VS_CC SetLogLevel(const VSMap *in, VSMap *out, void *, VSCore *, con int level = vsapi->mapGetIntSaturated(in, "level", 0, &err); if (err) level = 32; - vsapi->mapSetInt(out, "level", SetFFmpegLogLevel(), maReplace); + vsapi->mapSetInt(out, "level", SetFFmpegLogLevel(level), maReplace); } VS_EXTERNAL_API(void) VapourSynthPluginInit2(VSPlugin *plugin, const VSPLUGINAPI *vspapi) { - vspapi->configPlugin("com.vapoursynth.bestsource", "bs", "Best Source", VS_MAKE_VERSION(BEST_SOURCE_VERSION_MAJOR, BEST_SOURCE_VERSION_MINOR), VS_MAKE_VERSION(VAPOURSYNTH_API_MAJOR, 0), 0, plugin); + vspapi->configPlugin("com.vapoursynth.bestsource", "bs", "Best Source 2", VS_MAKE_VERSION(BEST_SOURCE_VERSION_MAJOR, BEST_SOURCE_VERSION_MINOR), VS_MAKE_VERSION(VAPOURSYNTH_API_MAJOR, 0), 0, plugin); vspapi->registerFunction("VideoSource", "source:data;track:int:opt;variableformat:int:opt;fpsnum:int:opt;fpsden:int:opt;rff:int:opt;threads:int:opt;seekpreroll:int:opt;enable_drefs:int:opt;use_absolute_path:int:opt;cachepath:data:opt;cachesize:int:opt;hwdevice:data:opt;extrahwframes:int:opt;timecodes:data:opt;showprogress:int:opt;", "clip:vnode;", CreateBestVideoSource, nullptr, plugin); vspapi->registerFunction("AudioSource", "source:data;track:int:opt;adjustdelay:int:opt;threads:int:opt;enable_drefs:int:opt;use_absolute_path:int:opt;drc_scale:float:opt;cachepath:data:opt;cachesize:int:opt;showprogress:int:opt;", "clip:anode;", CreateBestAudioSource, nullptr, plugin); vspapi->registerFunction("SetDebugOutput", "", "enable:int;", SetDebugOutput, nullptr, plugin);