aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-17 09:44:38 -0800
committerGitHub <noreply@github.com>2023-02-17 09:44:38 -0800
commitd58636445f22aeba0c4c44cdc0c3956088cd4bdc (patch)
tree88347023ee99134ca9eb68453cfaf89d898d31c6 /src
parent8df7d3eab72279f70fbbacab048bed5e99b36b27 (diff)
parent6afc4a213486a5832caf7bf934c835c6d278cd8a (diff)
Merge pull request #9810 from Kelebek1/nvdec_threads
Allow >1 cpu threads on video decoding, disable multi-frame decoding
Diffstat (limited to 'src')
-rw-r--r--src/video_core/host1x/codecs/codec.cpp2
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 42e7d6e4fb..3e9022dce4 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() {