Skip to content

Commit

Permalink
vfx/vfx.cc: fix memcpy
Browse files Browse the repository at this point in the history
Coding on GitHub is tough! Akarin never told me how to compile his toys...
  • Loading branch information
ruihe774 authored Aug 30, 2021
1 parent 37f2d9c commit 6c96feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vfx/vfx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static const VSFrameRef *VS_CC vfxGetFrame(int n, int activationReason, void **i
mcp2d.dstMemoryType = CU_MEMORYTYPE_HOST;
mcp2d.dstHost = host;
mcp2d.dstPitch = (size_t)d->dstTmpImg.pitch;
mcp2d.WidthInBytes = (size_t)d->out_image_width() * d->vi.format->bytesPerSample;
mcp2d.WidthInBytes = (size_t)d->out_image_width() * d->output_depth / 8;
mcp2d.Height = d->out_image_height() * 3;
CK_CUDA(cuMemcpy2DAsync_v2(&mcp2d, d->stream));
}
Expand Down

0 comments on commit 6c96feb

Please sign in to comment.