FFmpegSource2: fix ffmpeg init some more

Originally committed to SVN as r2308.
This commit is contained in:
Fredrik Mellbin 2008-09-01 23:20:28 +00:00
parent 8f663c2336
commit 93b13387f2

View file

@ -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);