Skip to content

Commit

Permalink
Update AviSynthPlus plugin
Browse files Browse the repository at this point in the history
Add more readable error message #51
  • Loading branch information
TianZerL committed Dec 19, 2020
1 parent ea659bb commit c9a9582
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AviSynthPlus/src/Anime4KCPPASP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,13 @@ AVSValue AC_CDECL createAnime4KCPP(AVSValue args, void* user_data, IScriptEnviro
}
}

PClip clip = args[0].AsClip();

if (clip == nullptr)
env->ThrowError("Anime4KCPP: No input clip found, has clip input of 'src' paramenter been specified ?");

return new Anime4KCPPF(
args[0].AsClip(),
clip,
inputs,
CNN,
GPUMode,
Expand Down

0 comments on commit c9a9582

Please sign in to comment.