diff options
| author | 2023-02-14 18:55:46 +0000 | |
|---|---|---|
| committer | 2023-02-14 18:55:46 +0000 | |
| commit | 139b645aa23045463c3b0919f47be03a330c87f9 (patch) | |
| tree | d9bd1fe7421e65336a7c2dac30c032f454b8df2e /src | |
| parent | Merge pull request #9784 from m-HD/master (diff) | |
| download | yuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar.gz yuzu-139b645aa23045463c3b0919f47be03a330c87f9.tar.xz yuzu-139b645aa23045463c3b0919f47be03a330c87f9.zip | |
Allow >1 cpu threads on video decoding, disable multi-frame decoding
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/host1x/codecs/codec.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/host1x/codecs/codec.cpp b/src/video_core/host1x/codecs/codec.cpp index 42e7d6e4f..3e9022dce 100644 --- a/src/video_core/host1x/codecs/codec.cpp +++ b/src/video_core/host1x/codecs/codec.cpp | |||
| @@ -152,6 +152,8 @@ bool Codec::CreateGpuAvDevice() { | |||
| 152 | void Codec::InitializeAvCodecContext() { | 152 | void Codec::InitializeAvCodecContext() { |
| 153 | av_codec_ctx = avcodec_alloc_context3(av_codec); | 153 | av_codec_ctx = avcodec_alloc_context3(av_codec); |
| 154 | av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0); | 154 | av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0); |
| 155 | av_codec_ctx->thread_count = 0; | ||
| 156 | av_codec_ctx->thread_type &= ~FF_THREAD_FRAME; | ||
| 155 | } | 157 | } |
| 156 | 158 | ||
| 157 | void Codec::InitializeGpuDecoder() { | 159 | void Codec::InitializeGpuDecoder() { |