Fix X11 screengrabbing with vaapi

This commit is contained in:
loki
2021-08-07 14:39:18 +02:00
parent 0812f6f3c3
commit 9ed2141fc8
3 changed files with 19 additions and 10 deletions

View File

@@ -184,6 +184,12 @@ public:
int set_frame(AVFrame *frame) override {
// No deallocation necessary
if(av_hwframe_get_buffer(frame->hw_frames_ctx, frame, 0)) {
BOOST_LOG(error) << "Couldn't get hwframe for VAAPI"sv;
return -1;
}
va::DRMPRIMESurfaceDescriptor prime;
va::VASurfaceID surface = (std::uintptr_t)frame->data[3];