diff --git a/FFmpegSource2/ffmsindex.cpp b/FFmpegSource2/ffmsindex.cpp index 93337de5e..e60de0ee5 100644 --- a/FFmpegSource2/ffmsindex.cpp +++ b/FFmpegSource2/ffmsindex.cpp @@ -131,6 +131,8 @@ int FFMSIndexApp::DoIndexing (IndexingOptions *Options) { return 1; } + FFMS_DestroyFrameIndex(Index); + std::cout << "done." << std::endl; } else { std::cout << "Error: index file already exists, use -f if you are sure you want to overwrite it." << std::endl; diff --git a/FFmpegSource2/ffmsindex.h b/FFmpegSource2/ffmsindex.h index eab750dd0..f91112e87 100644 --- a/FFmpegSource2/ffmsindex.h +++ b/FFmpegSource2/ffmsindex.h @@ -22,7 +22,7 @@ #include #include -#include "../FFmpegSource2/ffms.h" +#include "ffms.h" struct IndexingOptions { int TrackMask;