X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=decklink_capture.cpp;h=0f48e3e77f48ffe18c74175675060b52ea02f50b;hp=881e1817b1b7262f295584ac24e7f6d80fd1b65e;hb=817fffe1ef3bd87f2387395f49487cf5255d8daf;hpb=330ca2f0052b06d91004c6ceb73cd57ab95e7fe1 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;