diff options
| author | 2021-12-15 01:10:07 -0700 | |
|---|---|---|
| committer | 2021-12-15 20:57:01 -0700 | |
| commit | 3f765ea9a4598a5b68e8210aec75067f901172b9 (patch) | |
| tree | bb3ed9be9344d37bbdf4eb7456813246bda3da1f /src/video_core/command_classes | |
| parent | Merge pull request #7588 from Wunkolo/gibibibi-bytes (diff) | |
| download | yuzu-3f765ea9a4598a5b68e8210aec75067f901172b9.tar.gz yuzu-3f765ea9a4598a5b68e8210aec75067f901172b9.tar.xz yuzu-3f765ea9a4598a5b68e8210aec75067f901172b9.zip | |
video_core/codecs: (re-spin) refactor ffmpeg searching and handling
Diffstat (limited to 'src/video_core/command_classes')
| -rw-r--r-- | src/video_core/command_classes/codecs/codec.cpp | 6 |
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 | } |