Skip to content

Commit

Permalink
'getCoreInfo' is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed May 12, 2021
1 parent e290785 commit 8bf9aa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VMAF/VMAF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ static void VS_CC vmafCreate(const VSMap* in, VSMap* out, void* userData, VSCore
else
d->pool = const_cast<char*>("min");

d->numThreads = vsapi->getCoreInfo(core)->numThreads;
VSCoreInfo info;
vsapi->getCoreInfo2(core, &info);
d->numThreads = info.numThreads;

d->factor = 1.0f / (1 << (d->vi->format->bitsPerSample - 8));

Expand Down

0 comments on commit 8bf9aa2

Please sign in to comment.