Skip to content

Commit 67a170e

Browse files
PinterfPinterf
authored andcommitted
I really wanted to use planecount
1 parent 76d119e commit 67a170e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/MVBlockFps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ PVideoFrame __stdcall MVBlockFps::GetFrame(int n, IScriptEnvironment* env)
576576
const int planesYUV[] = { PLANAR_Y, PLANAR_U, PLANAR_V };
577577
const int *planes = isRGB ? planesRGB : planesYUV;
578578
const int planeCount = vi.IsY() ? 1 : 3;
579-
for (int p = 0; p < 3; p++) { // grey support
579+
for (int p = 0; p < planeCount; p++) { // grey support
580580
int plane = planes[p];
581581
pDst[p] = dst->GetWritePtr(plane);
582582
nDstPitches[p] = dst->GetPitch(plane);

0 commit comments

Comments
 (0)