mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Treat AV_CODEC_CAP_HARDWARE codecs as hardware accelerated too
This commit is contained in:
parent
859a5a5e0c
commit
00a1948b73
@ -32,7 +32,8 @@
|
||||
|
||||
bool FFmpegVideoDecoder::isHardwareAccelerated()
|
||||
{
|
||||
return m_HwDecodeCfg != nullptr;
|
||||
return m_HwDecodeCfg != nullptr ||
|
||||
(m_VideoDecoderCtx->codec->capabilities & AV_CODEC_CAP_HARDWARE) != 0;
|
||||
}
|
||||
|
||||
int FFmpegVideoDecoder::getDecoderCapabilities()
|
||||
|
Loading…
x
Reference in New Issue
Block a user