diff --git a/FFmpegSource2/ffavsfilters.cpp b/FFmpegSource2/ffavsfilters.cpp index 65866aad561376e93e459d1dbf235ef20afe1ac8..5e005ce7f695340d1677c6bdd64b328d2f36922b 100644 --- a/FFmpegSource2/ffavsfilters.cpp +++ b/FFmpegSource2/ffavsfilters.cpp @@ -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); diff --git a/FFmpegSource2/indexing.cpp b/FFmpegSource2/indexing.cpp index 44c3e8aea4735becea8b3a57628709210a7e0ae8..0570c090c6f38e9e9c59edecd84f9b4b15acfbd4 100644 --- a/FFmpegSource2/indexing.cpp +++ b/FFmpegSource2/indexing.cpp @@ -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); } };