diff options
author | bunnei <bunneidev@gmail.com> | 2023-02-17 18:44:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 18:44:38 +0100 |
commit | e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768 (patch) | |
tree | 88347023ee99134ca9eb68453cfaf89d898d31c6 /src/video_core | |
parent | Merge pull request #9817 from german77/save (diff) | |
parent | Allow >1 cpu threads on video decoding, disable multi-frame decoding (diff) | |
download | yuzu-e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768.tar yuzu-e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768.tar.gz yuzu-e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768.tar.bz2 yuzu-e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768.tar.lz yuzu-e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768.tar.xz yuzu-e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768.tar.zst yuzu-e91ff9b7bd37c87c43c1ca9ef9d8c2def050d768.zip |
Diffstat (limited to 'src/video_core')
-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() { void Codec::InitializeAvCodecContext() { av_codec_ctx = avcodec_alloc_context3(av_codec); av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0); + av_codec_ctx->thread_count = 0; + av_codec_ctx->thread_type &= ~FF_THREAD_FRAME; } void Codec::InitializeGpuDecoder() { |