mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 05:34:17 +00:00
Treat AV_CODEC_CAP_HARDWARE codecs as hardware accelerated too
This commit is contained in:
parent
859a5a5e0c
commit
00a1948b73
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue