]> git.sesse.net Git - nageru/blobdiff - nageru/decklink_capture.cpp
When uploading MJPEG data to VA-API, do it directly into the buffer.
[nageru] / nageru / decklink_capture.cpp
index a09aefaaec14661bafcc3bedc5555d054fe19038..f7016dce7c07f607455481c9d00a34e2d379ac99 100644 (file)
@@ -252,7 +252,7 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived(
                        assert(stride == width * 2);
                }
 
-               current_video_frame = video_frame_allocator->alloc_frame();
+               current_video_frame = video_frame_allocator->create_frame(width, height, stride);
                if (current_video_frame.data != nullptr) {
                        const uint8_t *src;
                        video_frame->GetBytes((void **)&src);