Skip to content

Commit

Permalink
Update MVRecalculate.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
IFeelBloated committed Aug 29, 2015
1 parent 9aa31ca commit 7ea85f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions MVRecalculate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,10 @@ static void VS_CC mvrecalculateCreate(const VSMap *in, VSMap *out, void *userDat
}

if (d.dctmode >= 5 && !((d.blksize == 4 && d.blksizev == 4) ||
(d.blksize == 8 && d.blksizev == 4) ||
(d.blksize == 8 && d.blksizev == 8) ||
(d.blksize == 16 && d.blksizev == 8) ||
(d.blksize == 16 && d.blksizev == 16))) {
vsapi->setError(out, "Recalculate: dct 5..10 can only work with 4x4, 8x4, 8x8, 16x8, and 16x16 blocks.");
(d.blksize == 16 && d.blksizev == 16) ||
(d.blksize == 32 && d.blksizev == 32))) {
vsapi->setError(out, "Recalculate: dct 5..10 can only work with 4x4, 8x8, 16x16, and 32x32 blocks.");
return;
}

Expand Down

0 comments on commit 7ea85f6

Please sign in to comment.