Skip to content

Commit

Permalink
Recalculate: use the right VSVideoInfo
Browse files Browse the repository at this point in the history
The frames returned by Recalculate are always Gray8. DCTFFTW needs the
bit depth of the super clip.

The result was that every frame was mistaken for a scene change.
  • Loading branch information
cantabile committed Jan 18, 2016
1 parent ba58c96 commit 9db3128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MVRecalculate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static const VSFrameRef *VS_CC mvrecalculateGetFrame(int n, int activationReason
DCTc = new DCTINT(d->blksize, d->blksizev, d->dctmode);
else
*/
DCTc = new DCTFFTW(d->blksize, d->blksizev, d->dctmode, d->vi->format->bitsPerSample);
DCTc = new DCTFFTW(d->blksize, d->blksizev, d->dctmode, d->supervi->format->bitsPerSample);
}


Expand Down

0 comments on commit 9db3128

Please sign in to comment.