Skip to content

Commit

Permalink
capture/rgbeasy: Fix using obsolete heap_mem API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
leikareipa committed Dec 24, 2021
1 parent 6827b49 commit 4416f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/capture/rgbeasy/capture_rgbeasy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ namespace rgbeasy_callbacks_n
FRAME_BUFFER.pixelFormat = CAPTURE_PIXEL_FORMAT;

// Copy the frame's data into our local buffer so we can work on it.
memcpy(FRAME_BUFFER.pixels.ptr(), (u8*)frameData,
FRAME_BUFFER.pixels.up_to(FRAME_BUFFER.r.w * FRAME_BUFFER.r.h * (FRAME_BUFFER.r.bpp / 8)));
memcpy(FRAME_BUFFER.pixels.data(), (u8*)frameData,
FRAME_BUFFER.pixels.size_check(FRAME_BUFFER.r.w * FRAME_BUFFER.r.h * (FRAME_BUFFER.r.bpp / 8)));

push_capture_event(capture_event_e::new_frame);

Expand Down

0 comments on commit 4416f6f

Please sign in to comment.