diff --git a/FFmpegSource2/ffavsfilters.cpp b/FFmpegSource2/ffavsfilters.cpp index 2cc4f394e..ed4625759 100644 --- a/FFmpegSource2/ffavsfilters.cpp +++ b/FFmpegSource2/ffavsfilters.cpp @@ -26,6 +26,8 @@ #include "utils.h" AVSValue __cdecl CreateFFIndex(AVSValue Args, void* UserData, IScriptEnvironment* Env) { + FFMS_Init(); + char ErrorMsg[1024]; unsigned MsgSize = sizeof(ErrorMsg); @@ -70,6 +72,8 @@ AVSValue __cdecl CreateFFIndex(AVSValue Args, void* UserData, IScriptEnvironment } AVSValue __cdecl CreateFFVideoSource(AVSValue Args, void* UserData, IScriptEnvironment* Env) { + FFMS_Init(); + char ErrorMsg[1024]; unsigned MsgSize = sizeof(ErrorMsg);