Skip to content

Commit

Permalink
GS:Capture: VAAPI support
Browse files Browse the repository at this point in the history
  • Loading branch information
TellowKrinkle authored and F0bes committed Jul 21, 2024
1 parent a4f1431 commit 328275c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pcsx2/GS/GSCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 328275c

Please sign in to comment.