Skip to content

Commit

Permalink
Reject RGB color family
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed Apr 3, 2019
1 parent 69b82ca commit d6a3ff5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions VMAF/VMAF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ static void VS_CC vmafCreate(const VSMap *in, VSMap *out, void *userData, VSCore
if (!isConstantFormat(d->vi) || d->vi->format->sampleType != stInteger || d->vi->format->bitsPerSample > 16)
throw std::string{ "only constant format 8-16 bit integer input supported" };

if (d->vi->format->colorFamily == cmRGB)
throw std::string{ "RGB color family is not supported" };

if (!isSameFormat(vsapi->getVideoInfo(d->distorted), d->vi))
throw std::string{ "both clips must have the same dimensions and be the same format" };

Expand Down

0 comments on commit d6a3ff5

Please sign in to comment.