Support AV1 codec

This commit is contained in:
dijunkun
2024-04-19 17:37:00 +08:00
parent d8980f0082
commit 422478bd9a
5 changed files with 404 additions and 389 deletions

View File

@@ -167,7 +167,7 @@ void ScreenCapturerWgc::OnFrame(const WgcSession::wgc_session_frame &frame) {
if (_on_data)
BGRAToNV12FFmpeg((unsigned char *)frame.data, frame.width, frame.height,
nv12_frame_);
_on_data(nv12_frame_, frame.width * frame.height * 4, frame.width,
_on_data(nv12_frame_, frame.width * frame.height * 3 / 2, frame.width,
frame.height);
}