X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fdecklink_capture.cpp;h=ea55b4668f3c83e4b5119c7ad63f91bf0d0ecaf9;hb=09b27ab32073dba2c565cdda43fcf2c37ea04a7b;hp=881e1817b1b7262f295584ac24e7f6d80fd1b65e;hpb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;p=nageru diff --git a/nageru/decklink_capture.cpp b/nageru/decklink_capture.cpp index 881e181..ea55b46 100644 --- a/nageru/decklink_capture.cpp +++ b/nageru/decklink_capture.cpp @@ -21,7 +21,7 @@ #include "bmusb/bmusb.h" #include "decklink_util.h" #include "flags.h" -#include "memcpy_interleaved.h" +#include "shared/memcpy_interleaved.h" #include "v210_converter.h" #define FRAME_SIZE (8 << 20) // 8 MB. @@ -265,6 +265,9 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived( } else { memcpy(current_video_frame.data, frame_bytes, num_bytes); } + if (current_video_frame.data_copy != nullptr) { + memcpy(current_video_frame.data_copy, frame_bytes, num_bytes); + } current_video_frame.len += num_bytes; video_format.width = width;