mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
FFmpegSource2: fix ffmpeg init some more
Originally committed to SVN as r2308.
This commit is contained in:
parent
8f663c2336
commit
93b13387f2
@ -26,6 +26,8 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
AVSValue __cdecl CreateFFIndex(AVSValue Args, void* UserData, IScriptEnvironment* Env) {
|
AVSValue __cdecl CreateFFIndex(AVSValue Args, void* UserData, IScriptEnvironment* Env) {
|
||||||
|
FFMS_Init();
|
||||||
|
|
||||||
char ErrorMsg[1024];
|
char ErrorMsg[1024];
|
||||||
unsigned MsgSize = sizeof(ErrorMsg);
|
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) {
|
AVSValue __cdecl CreateFFVideoSource(AVSValue Args, void* UserData, IScriptEnvironment* Env) {
|
||||||
|
FFMS_Init();
|
||||||
|
|
||||||
char ErrorMsg[1024];
|
char ErrorMsg[1024];
|
||||||
unsigned MsgSize = sizeof(ErrorMsg);
|
unsigned MsgSize = sizeof(ErrorMsg);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user