summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2021-12-14 22:27:13 -0800
committerGravatar GitHub2021-12-14 22:27:13 -0800
commit156215d1faf8a74379e54409304e90384b59c8af (patch)
tree931cbdba012d5d0ddfd825ed0eb318f398ac1e69 /src
parentMerge pull request #7558 from Morph1984/unused-cpu-family-model (diff)
parentCI: fix CI on Linux (diff)
downloadyuzu-156215d1faf8a74379e54409304e90384b59c8af.tar.gz
yuzu-156215d1faf8a74379e54409304e90384b59c8af.tar.xz
yuzu-156215d1faf8a74379e54409304e90384b59c8af.zip
Merge pull request #7565 from liushuyu/fix-linux-decoding
video_core/codecs: refactor ffmpeg searching and handling in cmake
Diffstat (limited to '')
-rw-r--r--src/video_core/command_classes/codecs/codec.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/command_classes/codecs/codec.cpp b/src/video_core/command_classes/codecs/codec.cpp
index 2a532b883..868b82f9b 100644
--- a/src/video_core/command_classes/codecs/codec.cpp
+++ b/src/video_core/command_classes/codecs/codec.cpp
@@ -130,6 +130,12 @@ bool Codec::CreateGpuAvDevice() {
130 } 130 }
131 if (config->methods & HW_CONFIG_METHOD && config->device_type == type) { 131 if (config->methods & HW_CONFIG_METHOD && config->device_type == type) {
132 av_codec_ctx->pix_fmt = config->pix_fmt; 132 av_codec_ctx->pix_fmt = config->pix_fmt;
133 if (config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX) {
134 // skip zero-copy decoders, we don't currently support them
135 LOG_DEBUG(Service_NVDRV, "Skipping decoder {} with unsupported capability {}.",
136 av_hwdevice_get_type_name(type), config->methods);
137 continue;
138 }
133 LOG_INFO(Service_NVDRV, "Using {} GPU decoder", av_hwdevice_get_type_name(type)); 139 LOG_INFO(Service_NVDRV, "Using {} GPU decoder", av_hwdevice_get_type_name(type));
134 return true; 140 return true;
135 } 141 }