Skip to content

Commit

Permalink
Using new function in C++20: set.contains()
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcup committed Jul 23, 2023
1 parent 13c6e80 commit d9435e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MiscTomcup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static const VSFrame* VS_CC filterGetFrame(int n, int activationReason, void* in

VSFrame* dst = vsapi->copyFrame(frame, core);
VSMap* rwprops = vsapi->getFramePropertiesRW(dst);
vsapi->mapSetInt(rwprops, "_SceneChangeNext", d->scdata.find(n) != d->scdata.end(), maReplace);
vsapi->mapSetInt(rwprops, "_SceneChangeNext", d->scdata.contains(n), maReplace);

vsapi->freeFrame(frame);

Expand Down Expand Up @@ -77,6 +77,6 @@ static void VS_CC filterCreate(const VSMap* in, VSMap* out, void* userData, VSCo
}

VS_EXTERNAL_API(void) VapourSynthPluginInit2(VSPlugin* plugin, const VSPLUGINAPI* vspapi) {
vspapi->configPlugin("com.tomcup.SCDetect", "tomcup", "Mark the clip with PySceneDetect's output", VS_MAKE_VERSION(1, 0), VAPOURSYNTH_API_VERSION, 0, plugin);
vspapi->configPlugin("com.tomcup.SCDetect", "tomcup", "Mark the clip with PySceneDetect's output", VS_MAKE_VERSION(1, 1), VAPOURSYNTH_API_VERSION, 0, plugin);
vspapi->registerFunction("SCDetect", "clip:vnode;scfile:data", "clip:vnode;", filterCreate, 0, plugin);
}

0 comments on commit d9435e1

Please sign in to comment.