Add missing software device creation override

This commit is contained in:
ns6089 2023-08-13 22:27:35 +03:00 committed by Cameron Gutman
parent f2f63cdfff
commit def9b2d76f
2 changed files with 9 additions and 0 deletions

View File

@ -194,6 +194,9 @@ namespace platf::dxgi {
int
init(const ::video::config_t &config, const std::string &display_name);
std::unique_ptr<avcodec_encode_device_t>
make_avcodec_encode_device(pix_fmt_e pix_fmt) override;
cursor_t cursor;
D3D11_MAPPED_SUBRESOURCE img_info;
texture2d_t texture;

View File

@ -389,4 +389,10 @@ namespace platf::dxgi {
return 0;
}
std::unique_ptr<avcodec_encode_device_t>
display_ram_t::make_avcodec_encode_device(pix_fmt_e pix_fmt) {
return std::make_unique<avcodec_encode_device_t>();
}
} // namespace platf::dxgi