X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=decklink_capture.cpp;h=0f48e3e77f48ffe18c74175675060b52ea02f50b;hb=8e86ae071c057a26e933b8452ac541050ba2cb9f;hp=881e1817b1b7262f295584ac24e7f6d80fd1b65e;hpb=a50cb8461138d93a9eb3c6978c195799c3b4a03c;p=nageru diff --git a/decklink_capture.cpp b/decklink_capture.cpp index 881e181..0f48e3e 100644 --- a/decklink_capture.cpp +++ b/decklink_capture.cpp @@ -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;