GS:Capture: VAAPI support

This commit is contained in:
TellowKrinkle 2024-06-09 23:56:20 -05:00 committed by Ty
parent a4f1431bcc
commit 328275cd45
1 changed files with 2 additions and 0 deletions

View File

@ -460,6 +460,8 @@ bool GSCapture::BeginCapture(float fps, GSVector2i recommendedResolution, float
}
}
}
if (sw_pix_fmt == AV_PIX_FMT_VAAPI)
sw_pix_fmt = AV_PIX_FMT_NV12;
s_video_codec_context->pix_fmt = sw_pix_fmt;
// Can we use hardware encoding?