diff --git a/services/capture/decklink-bridge/main.cpp b/services/capture/decklink-bridge/main.cpp index bc1e163..1aa4263 100644 --- a/services/capture/decklink-bridge/main.cpp +++ b/services/capture/decklink-bridge/main.cpp @@ -271,7 +271,9 @@ public: /* Some SDK versions require casting to the base IDeckLinkVideoFrame * to access GetBytes() from an IDeckLinkVideoInputFrame. */ IDeckLinkVideoFrame *baseFrame = static_cast(videoFrame); - baseFrame->GetBytes(&bytes); + // SDK has changed: GetBytes() is no longer directly on IDeckLinkVideoFrame. + // Use GetFrameInternalBufferBytes() which is more robust. + videoFrame->GetFrameInternalBufferBytes(&bytes); uint32_t sz = (uint32_t)(videoFrame->GetRowBytes() * videoFrame->GetHeight()); uint32_t frame_bytes_expected = (uint32_t)m_ds->width * (uint32_t)m_ds->height * 2;