mirror of https://github.com/odrling/Aegisub
parent
4683c5a9d0
commit
6c571dfe17
|
@ -60,7 +60,7 @@ AVSValue __cdecl CreateFFIndex(AVSValue Args, void* UserData, IScriptEnvironment
|
|||
// 1: Index generated
|
||||
// 2: Index forced to be overwritten
|
||||
|
||||
FrameIndex *Index;
|
||||
FrameIndex *Index = NULL;
|
||||
if (OverWrite || !(Index = FFMS_ReadIndex(CacheFile, ErrorMsg, MsgSize))) {
|
||||
if (!(Index = FFMS_MakeIndex(Source, IndexMask, DumpMask, AudioFile, true, NULL, NULL, ErrorMsg, MsgSize)))
|
||||
Env->ThrowError("FFIndex: %s", ErrorMsg);
|
||||
|
|
|
@ -66,8 +66,9 @@ public:
|
|||
|
||||
~FFAudioContext() {
|
||||
delete W64W;
|
||||
if (CTX)
|
||||
avcodec_close(CTX);
|
||||
// FIXME, why is there an access violation here?
|
||||
// if (CTX)
|
||||
// avcodec_close(CTX);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue